Class Netty5WebSocketSessionSupport<T>
java.lang.Object
org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<T>
org.springframework.web.reactive.socket.adapter.Netty5WebSocketSessionSupport<T>
- Type Parameters:
- T- the native delegate type
- All Implemented Interfaces:
- WebSocketSession
- Direct Known Subclasses:
- ReactorNetty2WebSocketSession
Base class for Netty-based 
WebSocketSession adapters that provides
 convenience methods to convert Netty WebSocketFrames to and from
 WebSocketMessages.
 This class is based on NettyWebSocketSessionSupport.
- Since:
- 6.0
- Author:
- Violeta Georgieva
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThe default max size for inbound WebSocket frames.Fields inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSessionlogger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedNetty5WebSocketSessionSupport(T delegate, HandshakeInfo info, Netty5DataBufferFactory factory) 
- 
Method SummaryModifier and TypeMethodDescriptionReturn aDataBufferFactory to create message payloads.protected io.netty5.handler.codec.http.websocketx.WebSocketFrametoFrame(WebSocketMessage message) protected WebSocketMessagetoMessage(io.netty5.handler.codec.http.websocketx.WebSocketFrame frame) Methods inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSessionbinaryMessage, getAttributes, getDelegate, getHandshakeInfo, getId, getLogPrefix, pingMessage, pongMessage, receive, send, textMessage, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.socket.WebSocketSessionclose, close, closeStatus, isOpen
- 
Field Details- 
DEFAULT_FRAME_MAX_SIZEpublic static final int DEFAULT_FRAME_MAX_SIZEThe default max size for inbound WebSocket frames.- See Also:
 
 
- 
- 
Constructor Details- 
Netty5WebSocketSessionSupportprotected Netty5WebSocketSessionSupport(T delegate, HandshakeInfo info, Netty5DataBufferFactory factory) 
 
- 
- 
Method Details- 
bufferFactoryDescription copied from interface:WebSocketSessionReturn aDataBufferFactory to create message payloads.- Specified by:
- bufferFactoryin interface- WebSocketSession
- Overrides:
- bufferFactoryin class- AbstractWebSocketSession<T>
- Returns:
- the buffer factory for the session
 
- 
toMessage
- 
toFrame
 
-