Package org.jdrupes.httpcodec
Interface MessageHeader
- All Known Implementing Classes:
HttpMessageHeader
,HttpRequest
,HttpResponse
,WsCloseFrame
,WsCloseResponse
,WsDefaultControlFrame
,WsFrameHeader
,WsMessageHeader
,WsPingFrame
,WsPongFrame
public interface MessageHeader
Represents a message header (either request or response) which preceeds
the option payload data.
Header and payload together form the complete message.
-
Method Details
-
hasPayload
boolean hasPayload()Returns true if the complete message comprises additional data inBuffer
s when decoded or encoded.- Returns:
- true if payload data follows
-
isFinal
boolean isFinal()Returns true if this is the final message received or transmitted on a connection.- Returns:
- the result
-