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