public class StandardWebSocketHandlerAdapter
extends Endpoint
WebSocketHandler
to the standard WebSocket for Java API.Modifier and Type | Field and Description |
---|---|
private WebSocketHandler |
handler |
private static Log |
logger |
private StandardWebSocketSession |
wsSession |
Constructor and Description |
---|
StandardWebSocketHandlerAdapter(WebSocketHandler handler,
StandardWebSocketSession wsSession) |
Modifier and Type | Method and Description |
---|---|
private void |
handleBinaryMessage(javax.websocket.Session session,
java.nio.ByteBuffer payload,
boolean isLast) |
private void |
handlePongMessage(javax.websocket.Session session,
java.nio.ByteBuffer payload) |
private void |
handleTextMessage(javax.websocket.Session session,
java.lang.String payload,
boolean isLast) |
void |
onClose(javax.websocket.Session session,
CloseReason reason) |
void |
onError(javax.websocket.Session session,
java.lang.Throwable exception) |
void |
onOpen(javax.websocket.Session session,
EndpointConfig config) |
private static final Log logger
private final WebSocketHandler handler
private final StandardWebSocketSession wsSession
public StandardWebSocketHandlerAdapter(WebSocketHandler handler, StandardWebSocketSession wsSession)
public void onOpen(javax.websocket.Session session, EndpointConfig config)
private void handleTextMessage(javax.websocket.Session session, java.lang.String payload, boolean isLast)
private void handleBinaryMessage(javax.websocket.Session session, java.nio.ByteBuffer payload, boolean isLast)
private void handlePongMessage(javax.websocket.Session session, java.nio.ByteBuffer payload)
public void onClose(javax.websocket.Session session, CloseReason reason)
public void onError(javax.websocket.Session session, java.lang.Throwable exception)