Class PongMessage
java.lang.Object
org.springframework.web.socket.AbstractWebSocketMessage<ByteBuffer>
org.springframework.web.socket.PongMessage
- All Implemented Interfaces:
 WebSocketMessage<ByteBuffer>
A WebSocket pong message.
- Since:
 - 4.0
 - Author:
 - Rossen Stoyanchev
 
- 
Constructor Summary
ConstructorsConstructorDescriptionCreate a new pong message with an empty payload.PongMessage(ByteBuffer payload) Create a new pong message with the given ByteBuffer payload. - 
Method Summary
Modifier and TypeMethodDescriptionintReturn the number of bytes contained in the message.protected StringMethods inherited from class org.springframework.web.socket.AbstractWebSocketMessage
equals, getPayload, hashCode, isLast, toString 
- 
Constructor Details
- 
PongMessage
public PongMessage()Create a new pong message with an empty payload. - 
PongMessage
Create a new pong message with the given ByteBuffer payload.- Parameters:
 payload- the non-null payload
 
 - 
 - 
Method Details
- 
getPayloadLength
public int getPayloadLength()Description copied from interface:WebSocketMessageReturn the number of bytes contained in the message. - 
toStringPayload
- Specified by:
 toStringPayloadin classAbstractWebSocketMessage<ByteBuffer>
 
 -