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.jetty9.StompSocket
 
 
 
 
- 
- All Implemented Interfaces:
- Service,- StompTransport,- 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.AbstractStompSocketcertificates, protocolConverter, protocolLock, receiveCounter, remoteAddress, socketTransportStarted, stompInactivityMonitor, wireFormat
 
- 
 - 
Constructor SummaryConstructors Constructor Description StompSocket(String remoteAddress)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleStopped()Called 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.AbstractStompSocketdoStart, doStop, getInactivityMonitor, getPeerCertificates, getReceiveCounter, getRemoteAddress, getWireFormat, oneway, processStompFrame, sendToActiveMQ, setPeerCertificates
 - 
Methods inherited from class org.apache.activemq.transport.TransportSupportasyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIs
 - 
Methods inherited from class org.apache.activemq.util.ServiceSupportaddServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.activemq.transport.stomp.StompTransportonException
 
- 
 
- 
- 
- 
Constructor Detail- 
StompSocketpublic StompSocket(String remoteAddress) 
 
- 
 - 
Method Detail- 
sendToStomppublic void sendToStomp(StompFrame command) throws IOException - Specified by:
- sendToStompin interface- StompTransport
- Specified by:
- sendToStompin class- AbstractStompSocket
- Throws:
- IOException
 
 - 
handleStoppedpublic void handleStopped() throws IOExceptionDescription copied from class:AbstractStompSocketCalled when the transport is stopping to allow the dervied classes a chance to close WebSocket resources.- Specified by:
- handleStoppedin class- AbstractStompSocket
- Throws:
- IOException- if an error occurs during the stop.
 
 - 
onWebSocketBinarypublic void onWebSocketBinary(byte[] arg0, int arg1, int arg2)- Specified by:
- onWebSocketBinaryin interface- org.eclipse.jetty.websocket.api.WebSocketListener
 
 - 
onWebSocketClosepublic void onWebSocketClose(int arg0, String arg1)- Specified by:
- onWebSocketClosein interface- org.eclipse.jetty.websocket.api.WebSocketConnectionListener
 
 - 
onWebSocketConnectpublic void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) - Specified by:
- onWebSocketConnectin interface- org.eclipse.jetty.websocket.api.WebSocketConnectionListener
 
 - 
onWebSocketErrorpublic void onWebSocketError(Throwable arg0) - Specified by:
- onWebSocketErrorin interface- org.eclipse.jetty.websocket.api.WebSocketConnectionListener
 
 - 
onWebSocketTextpublic void onWebSocketText(String data) - Specified by:
- onWebSocketTextin interface- org.eclipse.jetty.websocket.api.WebSocketListener
 
 
- 
 
-