Class JettyWebSocketHandlerAdapter
java.lang.Object
org.springframework.web.socket.adapter.jetty.JettyWebSocketHandlerAdapter
Adapts
WebSocketHandler
to the Jetty 9 WebSocket API.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionJettyWebSocketHandlerAdapter
(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onWebSocketBinary
(byte[] payload, int offset, int length) void
onWebSocketClose
(int statusCode, String reason) void
onWebSocketConnect
(org.eclipse.jetty.websocket.api.Session session) void
onWebSocketError
(Throwable cause) void
onWebSocketFrame
(org.eclipse.jetty.websocket.api.Frame frame) void
onWebSocketText
(String payload)
-
Constructor Details
-
JettyWebSocketHandlerAdapter
public JettyWebSocketHandlerAdapter(WebSocketHandler webSocketHandler, JettyWebSocketSession wsSession)
-
-
Method Details
-
onWebSocketConnect
@OnWebSocketConnect public void onWebSocketConnect(org.eclipse.jetty.websocket.api.Session session) -
onWebSocketText
-
onWebSocketBinary
@OnWebSocketMessage public void onWebSocketBinary(byte[] payload, int offset, int length) -
onWebSocketFrame
@OnWebSocketFrame public void onWebSocketFrame(org.eclipse.jetty.websocket.api.Frame frame) -
onWebSocketClose
-
onWebSocketError
-