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
@Deprecated(since="6.2.18",
forRemoval=true)
public abstract class Netty5WebSocketSessionSupport<T>
extends AbstractWebSocketSession<T>
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.The default max size for inbound WebSocket frames.Fields inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNetty5WebSocketSessionSupport(T delegate, HandshakeInfo info, org.springframework.core.io.buffer.Netty5DataBufferFactory factory) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.core.io.buffer.Netty5DataBufferFactoryDeprecated, for removal: This API element is subject to removal in a future version.Return aDataBufferFactory to create message payloads.protected io.netty5.handler.codec.http.websocketx.WebSocketFrametoFrame(WebSocketMessage message) Deprecated, for removal: This API element is subject to removal in a future version.protected WebSocketMessagetoMessage(io.netty5.handler.codec.http.websocketx.WebSocketFrame frame) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession
binaryMessage, getAttributes, getDelegate, getHandshakeInfo, getId, getLogPrefix, pingMessage, pongMessage, receive, send, textMessage, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.socket.WebSocketSession
close, close, closeStatus, isOpen
-
Field Details
-
DEFAULT_FRAME_MAX_SIZE
public static final int DEFAULT_FRAME_MAX_SIZEDeprecated, for removal: This API element is subject to removal in a future version.The default max size for inbound WebSocket frames.- See Also:
-
-
Constructor Details
-
Netty5WebSocketSessionSupport
protected Netty5WebSocketSessionSupport(T delegate, HandshakeInfo info, org.springframework.core.io.buffer.Netty5DataBufferFactory factory) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
bufferFactory
public org.springframework.core.io.buffer.Netty5DataBufferFactory bufferFactory()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:WebSocketSessionReturn aDataBufferFactory to create message payloads.- Specified by:
bufferFactoryin interfaceWebSocketSession- Overrides:
bufferFactoryin classAbstractWebSocketSession<T>- Returns:
- the buffer factory for the session
-
toMessage
Deprecated, for removal: This API element is subject to removal in a future version. -
toFrame
Deprecated, for removal: This API element is subject to removal in a future version.
-