public class StandardWebSocketHandlerAdapter
extends javax.websocket.Endpoint
WebSocketHandler
and its session.Constructor and Description |
---|
StandardWebSocketHandlerAdapter(WebSocketHandler handler,
java.util.function.Function<javax.websocket.Session,StandardWebSocketSession> sessionFactory) |
Modifier and Type | Method and Description |
---|---|
void |
onClose(javax.websocket.Session session,
javax.websocket.CloseReason reason) |
void |
onError(javax.websocket.Session session,
java.lang.Throwable exception) |
void |
onOpen(javax.websocket.Session session,
javax.websocket.EndpointConfig config) |
public StandardWebSocketHandlerAdapter(WebSocketHandler handler, java.util.function.Function<javax.websocket.Session,StandardWebSocketSession> sessionFactory)
public void onOpen(javax.websocket.Session session, javax.websocket.EndpointConfig config)
onOpen
in class javax.websocket.Endpoint
public void onClose(javax.websocket.Session session, javax.websocket.CloseReason reason)
onClose
in class javax.websocket.Endpoint
public void onError(javax.websocket.Session session, java.lang.Throwable exception)
onError
in class javax.websocket.Endpoint