T
- the native delegate typepublic abstract class NettyWebSocketSessionSupport<T> extends AbstractWebSocketSession<T>
WebSocketSession
adapters that provides
convenience methods to convert Netty WebSocketFrames
to and from
WebSocketMessages
.Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FRAME_MAX_SIZE
The default max size for inbound WebSocket frames.
|
logger
Modifier | Constructor and Description |
---|---|
protected |
NettyWebSocketSessionSupport(T delegate,
HandshakeInfo info,
NettyDataBufferFactory factory) |
Modifier and Type | Method and Description |
---|---|
NettyDataBufferFactory |
bufferFactory()
Return a
DataBuffer Factory to create message payloads. |
protected io.netty.handler.codec.http.websocketx.WebSocketFrame |
toFrame(WebSocketMessage message) |
protected WebSocketMessage |
toMessage(io.netty.handler.codec.http.websocketx.WebSocketFrame frame) |
binaryMessage, getAttributes, getDelegate, getHandshakeInfo, getId, getLogPrefix, pingMessage, pongMessage, receive, send, textMessage, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, close, closeStatus, isOpen
public static final int DEFAULT_FRAME_MAX_SIZE
protected NettyWebSocketSessionSupport(T delegate, HandshakeInfo info, NettyDataBufferFactory factory)
public NettyDataBufferFactory bufferFactory()
WebSocketSession
DataBuffer
Factory to create message payloads.bufferFactory
in interface WebSocketSession
bufferFactory
in class AbstractWebSocketSession<T>
protected WebSocketMessage toMessage(io.netty.handler.codec.http.websocketx.WebSocketFrame frame)
protected io.netty.handler.codec.http.websocketx.WebSocketFrame toFrame(WebSocketMessage message)