Package org.cometd.websocket.client
Class WebSocketTransport.WebSocketDelegate
- java.lang.Object
-
- org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
-
- org.cometd.websocket.client.WebSocketTransport.WebSocketDelegate
-
- All Implemented Interfaces:
javax.websocket.MessageHandler
,javax.websocket.MessageHandler.Whole<String>
- Enclosing class:
- WebSocketTransport
protected class WebSocketTransport.WebSocketDelegate extends AbstractWebSocketTransport.Delegate implements javax.websocket.MessageHandler.Whole<String>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WebSocketDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
close()
protected boolean
isOpen()
void
onMessage(String data)
void
send(String content)
protected void
shutdown(String reason)
-
Methods inherited from class org.cometd.websocket.client.common.AbstractWebSocketTransport.Delegate
fail, failMessages, onClose, onData, onMessages, registerMessages, trimCloseReason
-
-
-
-
Method Detail
-
onMessage
public void onMessage(String data)
- Specified by:
onMessage
in interfacejavax.websocket.MessageHandler.Whole<String>
-
send
public void send(String content)
- Specified by:
send
in classAbstractWebSocketTransport.Delegate
-
shutdown
protected void shutdown(String reason)
- Specified by:
shutdown
in classAbstractWebSocketTransport.Delegate
-
isOpen
protected boolean isOpen()
- Overrides:
isOpen
in classAbstractWebSocketTransport.Delegate
-
close
protected void close()
- Specified by:
close
in classAbstractWebSocketTransport.Delegate
-
-