Class AmqpWSTransport
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.amqp.AmqpWSTransport
- All Implemented Interfaces:
org.apache.activemq.Service,AmqpFrameParser.AMQPFrameSink,Transport,WSTransport
public class AmqpWSTransport
extends TransportSupport
implements WSTransport, AmqpFrameParser.AMQPFrameSink
An AMQP based WebSocket transport implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.activemq.transport.ws.WSTransport
WSTransport.WSTransportSink -
Constructor Summary
ConstructorsConstructorDescriptionAmqpWSTransport(URI location, org.apache.activemq.wireformat.WireFormat wireFormat) Create a new Transport instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart()protected voiddoStop(ServiceStopper stopper) intintorg.apache.activemq.wireformat.WireFormatvoidvoidvoidonWebSocketBinary(ByteBuffer data) voidvoidonWebSocketText(String data) voidsetPeerCertificates(X509Certificate[] certificates) voidsetTransportSink(WSTransport.WSTransportSink outputSink) Methods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsMethods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.Service
start, stopMethods inherited from interface org.apache.activemq.transport.Transport
asyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, updateURIs
-
Constructor Details
-
AmqpWSTransport
Create a new Transport instance.- Parameters:
location- the remote location where the client connection is from.wireFormat- the WireFormat instance that configures this Transport.
-
-
Method Details
-
setTransportSink
- Specified by:
setTransportSinkin interfaceWSTransport
-
oneway
- Specified by:
onewayin interfaceTransport- Throws:
IOException
-
getRemoteAddress
- Specified by:
getRemoteAddressin interfaceTransport
-
getReceiveCounter
public int getReceiveCounter()- Specified by:
getReceiveCounterin interfaceTransport
-
getPeerCertificates
- Specified by:
getPeerCertificatesin interfaceTransport
-
setPeerCertificates
- Specified by:
setPeerCertificatesin interfaceTransport
-
getSubProtocol
- Specified by:
getSubProtocolin interfaceWSTransport
-
getWireFormat
public org.apache.activemq.wireformat.WireFormat getWireFormat()- Specified by:
getWireFormatin interfaceTransport
-
getMaxFrameSize
public int getMaxFrameSize()- Specified by:
getMaxFrameSizein interfaceWSTransport
-
doStop
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
doStart
- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
onWebSocketText
- Specified by:
onWebSocketTextin interfaceWSTransport- Throws:
IOException
-
onWebSocketBinary
- Specified by:
onWebSocketBinaryin interfaceWSTransport- Throws:
IOException
-
onWebSocketClosed
- Specified by:
onWebSocketClosedin interfaceWSTransport- Throws:
IOException
-
onFrame
- Specified by:
onFramein interfaceAmqpFrameParser.AMQPFrameSink
-