public final class WSTransportProxy extends org.apache.activemq.transport.TransportSupport implements org.apache.activemq.transport.Transport, org.eclipse.jetty.websocket.api.WebSocketListener, org.apache.activemq.broker.BrokerServiceAware, org.apache.activemq.transport.ws.WSTransport.WSTransportSink
| Constructor and Description |
|---|
WSTransportProxy(String remoteAddress,
org.apache.activemq.transport.Transport transport)
Create a WebSocket Transport Proxy instance that will pass
along WebSocket event to the underlying protocol level transport.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop(org.apache.activemq.util.ServiceStopper stopper) |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
String |
getRemoteAddress() |
String |
getSubProtocol() |
org.apache.activemq.wireformat.WireFormat |
getWireFormat() |
void |
oneway(Object command) |
void |
onSocketOutboundBinary(ByteBuffer data) |
void |
onSocketOutboundText(String data) |
void |
onWebSocketBinary(byte[] payload,
int offset,
int length) |
void |
onWebSocketClose(int statusCode,
String reason) |
void |
onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) |
void |
onWebSocketError(Throwable cause) |
void |
onWebSocketText(String data) |
void |
setBrokerService(org.apache.activemq.broker.BrokerService brokerService) |
void |
setPeerCertificates(X509Certificate[] certificates) |
void |
setTransportOptions(Map<String,Object> options)
Apply any configure Transport options on the wrapped Transport and its contained
wireFormat instance.
|
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, waitpublic WSTransportProxy(String remoteAddress, org.apache.activemq.transport.Transport transport)
remoteAddress - the provided remote address to report being connected to.transport - The protocol level WebSocket Transportpublic String getSubProtocol()
public void setTransportOptions(Map<String,Object> options)
public void setBrokerService(org.apache.activemq.broker.BrokerService brokerService)
setBrokerService in interface org.apache.activemq.broker.BrokerServiceAwarepublic void oneway(Object command) throws IOException
oneway in interface org.apache.activemq.transport.TransportIOExceptionpublic X509Certificate[] getPeerCertificates()
getPeerCertificates in interface org.apache.activemq.transport.Transportpublic void setPeerCertificates(X509Certificate[] certificates)
setPeerCertificates in interface org.apache.activemq.transport.Transportpublic String getRemoteAddress()
getRemoteAddress in interface org.apache.activemq.transport.Transportpublic org.apache.activemq.wireformat.WireFormat getWireFormat()
getWireFormat in interface org.apache.activemq.transport.Transportpublic int getReceiveCounter()
getReceiveCounter in interface org.apache.activemq.transport.Transportprotected void doStop(org.apache.activemq.util.ServiceStopper stopper) throws Exception
doStop in class org.apache.activemq.util.ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class org.apache.activemq.util.ServiceSupportExceptionpublic void onWebSocketBinary(byte[] payload, int offset, int length)
onWebSocketBinary in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketText(String data)
onWebSocketText in interface org.eclipse.jetty.websocket.api.WebSocketListenerpublic void onWebSocketClose(int statusCode, String reason)
onWebSocketClose in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session)
onWebSocketConnect in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onWebSocketError(Throwable cause)
onWebSocketError in interface org.eclipse.jetty.websocket.api.WebSocketConnectionListenerpublic void onSocketOutboundText(String data) throws IOException
onSocketOutboundText in interface org.apache.activemq.transport.ws.WSTransport.WSTransportSinkIOExceptionpublic void onSocketOutboundBinary(ByteBuffer data) throws IOException
onSocketOutboundBinary in interface org.apache.activemq.transport.ws.WSTransport.WSTransportSinkIOExceptionCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.