Package ratpack.core.websocket
Class AutoCloseWebSocketHandler<T extends AutoCloseable>
- java.lang.Object
-
- ratpack.core.websocket.AutoCloseWebSocketHandler<T>
-
- All Implemented Interfaces:
WebSocketHandler<T>
public abstract class AutoCloseWebSocketHandler<T extends AutoCloseable> extends Object implements WebSocketHandler<T>
-
-
Constructor Summary
Constructors Constructor Description AutoCloseWebSocketHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
onClose(WebSocketClose<T> close)
void
onMessage(WebSocketMessage<T> frame)
abstract T
onOpen(WebSocket webSocket)
-
-
-
Method Detail
-
onOpen
public abstract T onOpen(WebSocket webSocket) throws Exception
- Specified by:
onOpen
in interfaceWebSocketHandler<T extends AutoCloseable>
- Throws:
Exception
-
onClose
public void onClose(WebSocketClose<T> close) throws Exception
- Specified by:
onClose
in interfaceWebSocketHandler<T extends AutoCloseable>
- Throws:
Exception
-
onMessage
public void onMessage(WebSocketMessage<T> frame) throws Exception
- Specified by:
onMessage
in interfaceWebSocketHandler<T extends AutoCloseable>
- Throws:
Exception
-
-