Class StompTcpMessageCodec
java.lang.Object
org.springframework.messaging.simp.stomp.StompTcpMessageCodec
- All Implemented Interfaces:
TcpMessageCodec<byte[]>
- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionStompTcpMessageCodec
(StompDecoder decoder) StompTcpMessageCodec
(StompDecoder decoder, StompEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptiondecode
(ByteBuffer nioBuffer) Decode the inputByteBuffer
into one or moreMessages
.Encode the givenMessage
to the outputByteBuffer
.
-
Constructor Details
-
StompTcpMessageCodec
public StompTcpMessageCodec() -
StompTcpMessageCodec
-
StompTcpMessageCodec
-
-
Method Details
-
decode
Description copied from interface:TcpMessageCodec
Decode the inputByteBuffer
into one or moreMessages
.- Specified by:
decode
in interfaceTcpMessageCodec<byte[]>
- Parameters:
nioBuffer
- the input buffer to decode from- Returns:
- 0 or more decoded messages
-
encode
Description copied from interface:TcpMessageCodec
Encode the givenMessage
to the outputByteBuffer
.- Specified by:
encode
in interfaceTcpMessageCodec<byte[]>
- Parameters:
message
- the message to encode- Returns:
- the encoded buffer
-