public class AmqpWSTransport extends TransportSupport implements WSTransport, AmqpFrameParser.AMQPFrameSink
WSTransport.WSTransportSink| Constructor and Description |
|---|
AmqpWSTransport(URI location,
org.apache.activemq.wireformat.WireFormat wireFormat)
Create a new Transport instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(ServiceStopper stopper) |
int |
getMaxFrameSize() |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
String |
getRemoteAddress() |
String |
getSubProtocol() |
org.apache.activemq.wireformat.WireFormat |
getWireFormat() |
void |
oneway(Object command) |
void |
onFrame(Object frame) |
void |
onWebSocketBinary(ByteBuffer data) |
void |
onWebSocketClosed() |
void |
onWebSocketText(String data) |
void |
setPeerCertificates(X509Certificate[] certificates) |
void |
setTransportSink(WSTransport.WSTransportSink outputSink) |
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIsaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncRequest, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, updateURIspublic AmqpWSTransport(URI location, org.apache.activemq.wireformat.WireFormat wireFormat)
location - the remote location where the client connection is from.wireFormat - the WireFormat instance that configures this Transport.public void setTransportSink(WSTransport.WSTransportSink outputSink)
setTransportSink in interface WSTransportpublic void oneway(Object command) throws IOException
oneway in interface TransportIOExceptionpublic String getRemoteAddress()
getRemoteAddress in interface Transportpublic int getReceiveCounter()
getReceiveCounter in interface Transportpublic X509Certificate[] getPeerCertificates()
getPeerCertificates in interface Transportpublic void setPeerCertificates(X509Certificate[] certificates)
setPeerCertificates in interface Transportpublic String getSubProtocol()
getSubProtocol in interface WSTransportpublic org.apache.activemq.wireformat.WireFormat getWireFormat()
getWireFormat in interface Transportpublic int getMaxFrameSize()
getMaxFrameSize in interface WSTransportprotected void doStop(ServiceStopper stopper) throws Exception
doStop in class ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class ServiceSupportExceptionpublic void onWebSocketText(String data) throws IOException
onWebSocketText in interface WSTransportIOExceptionpublic void onWebSocketBinary(ByteBuffer data) throws IOException
onWebSocketBinary in interface WSTransportIOExceptionpublic void onWebSocketClosed() throws IOException
onWebSocketClosed in interface WSTransportIOExceptionpublic void onFrame(Object frame)
onFrame in interface AmqpFrameParser.AMQPFrameSinkCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.