Module io.inverno.mod.http.base
Class GenericWebSocketMessage.GenericFactory
java.lang.Object
io.inverno.mod.http.base.internal.ws.GenericWebSocketMessage.GenericFactory
- All Implemented Interfaces:
WebSocketMessage.Factory
- Enclosing class:
GenericWebSocketMessage
public static final class GenericWebSocketMessage.GenericFactory
extends Object
implements WebSocketMessage.Factory
Generic WebSocketMessage.Factory implementation.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Constructor Summary
ConstructorsConstructorDescriptionGenericFactory(int maxFrameSize) Creates a generic WebSocket message factory. -
Method Summary
Modifier and TypeMethodDescriptionbinary(io.netty.buffer.ByteBuf value) Creates a binary message with the specified payload data.binary(org.reactivestreams.Publisher<io.netty.buffer.ByteBuf> stream) Creates a binary message with the specified payload data stream.Creates a text message with the specified payload data.Creates a text message with the specified payload data stream.text_raw(io.netty.buffer.ByteBuf value) Creates a text message with the specified raw payload data.text_raw(org.reactivestreams.Publisher<io.netty.buffer.ByteBuf> stream) Creates a text message with the specified raw payload data stream.
-
Constructor Details
-
GenericFactory
public GenericFactory(int maxFrameSize) Creates a generic WebSocket message factory.
- Parameters:
maxFrameSize- the maximum size of a frame
-
-
Method Details
-
text
Description copied from interface:WebSocketMessage.FactoryCreates a text message with the specified payload data.
- Specified by:
textin interfaceWebSocketMessage.Factory- Parameters:
value- payload data- Returns:
- a WebSocket message
-
text
Description copied from interface:WebSocketMessage.FactoryCreates a text message with the specified payload data stream.
- Specified by:
textin interfaceWebSocketMessage.Factory- Parameters:
stream- payload data stream- Returns:
- a WebSocket message
-
text_raw
Description copied from interface:WebSocketMessage.FactoryCreates a text message with the specified raw payload data.
- Specified by:
text_rawin interfaceWebSocketMessage.Factory- Parameters:
value- raw payload data- Returns:
- a WebSocket message
-
text_raw
Description copied from interface:WebSocketMessage.FactoryCreates a text message with the specified raw payload data stream.
- Specified by:
text_rawin interfaceWebSocketMessage.Factory- Parameters:
stream- raw payload data stream- Returns:
- a WebSocket message
-
binary
Description copied from interface:WebSocketMessage.FactoryCreates a binary message with the specified payload data.
- Specified by:
binaryin interfaceWebSocketMessage.Factory- Parameters:
value- payload data- Returns:
- a WebSocket message
-
binary
Description copied from interface:WebSocketMessage.FactoryCreates a binary message with the specified payload data stream.
- Specified by:
binaryin interfaceWebSocketMessage.Factory- Parameters:
stream- payload data stream- Returns:
- a WebSocket message
-