Class WsMessageHeader
java.lang.Object
org.jdrupes.httpcodec.protocols.websocket.WsFrameHeader
org.jdrupes.httpcodec.protocols.websocket.WsMessageHeader
- All Implemented Interfaces:
MessageHeader
The Websocket message header.
-
Constructor Summary
ConstructorDescriptionWsMessageHeader
(boolean textMode, boolean hasPayload) Creates a new message header. -
Method Summary
-
Constructor Details
-
WsMessageHeader
Creates a new message header.- Parameters:
textMode
- indicates whether the data is sent as texthasPayload
- indicates that the message has a payload
-
-
Method Details
-
isFinal
Description copied from interface:MessageHeader
Returns true if this is the final message received or transmitted on a connection.- Returns:
- the result
-
isTextMode
- Returns:
- whether the data is sent as text
-
hasPayload
Description copied from interface:MessageHeader
Returns true if the complete message comprises additional data inBuffer
s when decoded or encoded.- Returns:
- true if payload data follows
-
toString
-