public interface WebSocketHandler
| Modifier and Type | Method and Description |
|---|---|
default void |
onBinary(WebSocketSession session,
ByteBuffer data) |
default void |
onClose(WebSocketSession session,
int statusCode,
String reason) |
default void |
onError(WebSocketSession session,
Exception cause) |
default void |
onOpen(WebSocketSession session) |
default void |
onPing(WebSocketSession session,
ByteBuffer data) |
default void |
onPong(WebSocketSession session,
ByteBuffer data) |
default void |
onText(WebSocketSession session,
String text) |
default String |
selectSubprotocol(List<String> offered) |
default void onOpen(WebSocketSession session)
default void onText(WebSocketSession session, String text) throws WebSocketException
WebSocketExceptiondefault void onBinary(WebSocketSession session, ByteBuffer data) throws WebSocketException
WebSocketExceptiondefault void onPing(WebSocketSession session, ByteBuffer data) throws WebSocketException
WebSocketExceptiondefault void onPong(WebSocketSession session, ByteBuffer data) throws WebSocketException
WebSocketExceptiondefault void onClose(WebSocketSession session, int statusCode, String reason)
default void onError(WebSocketSession session, Exception cause)
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.