Class StompSocket
java.lang.Object
org.apache.activemq.util.ServiceSupport
org.apache.activemq.transport.TransportSupport
org.apache.activemq.transport.ws.AbstractStompSocket
org.apache.activemq.transport.ws.jetty11.StompSocket
- All Implemented Interfaces:
org.apache.activemq.Service,StompTransport,org.apache.activemq.transport.Transport,org.eclipse.jetty.websocket.api.WebSocketConnectionListener,org.eclipse.jetty.websocket.api.WebSocketListener
public class StompSocket
extends AbstractStompSocket
implements org.eclipse.jetty.websocket.api.WebSocketListener
Implements web socket and mediates between servlet and the broker
-
Field Summary
Fields inherited from class org.apache.activemq.transport.ws.AbstractStompSocket
certificates, protocolConverter, protocolLock, receiveCounter, remoteAddress, socketTransportStarted, stompInactivityMonitor, wireFormat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the transport is stopping to allow the dervied classes a chance to close WebSocket resources.voidonWebSocketBinary(byte[] arg0, int arg1, int arg2) voidonWebSocketClose(int arg0, String arg1) voidonWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) voidonWebSocketError(Throwable arg0) voidonWebSocketText(String data) voidsendToStomp(StompFrame command) Methods inherited from class org.apache.activemq.transport.ws.AbstractStompSocket
doStart, doStop, getInactivityMonitor, getPeerCertificates, getReceiveCounter, getRemoteAddress, getWireFormat, oneway, processStompFrame, sendToActiveMQ, setPeerCertificatesMethods 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.stomp.StompTransport
onException
-
Constructor Details
-
StompSocket
-
-
Method Details
-
sendToStomp
- Specified by:
sendToStompin interfaceStompTransport- Specified by:
sendToStompin classAbstractStompSocket- Throws:
IOException
-
handleStopped
Description copied from class:AbstractStompSocketCalled when the transport is stopping to allow the dervied classes a chance to close WebSocket resources.- Specified by:
handleStoppedin classAbstractStompSocket- Throws:
IOException- if an error occurs during the stop.
-
onWebSocketBinary
public void onWebSocketBinary(byte[] arg0, int arg1, int arg2) - Specified by:
onWebSocketBinaryin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-
onWebSocketClose
- Specified by:
onWebSocketClosein interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketConnect
public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) - Specified by:
onWebSocketConnectin interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketError
- Specified by:
onWebSocketErrorin interfaceorg.eclipse.jetty.websocket.api.WebSocketConnectionListener
-
onWebSocketText
- Specified by:
onWebSocketTextin interfaceorg.eclipse.jetty.websocket.api.WebSocketListener
-