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 Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the complete message comprises additional data in Buffers when decoded or encoded.
    boolean
    Returns true if this is the final message received or transmitted on a connection.
  • Method Details

    • hasPayload

      boolean hasPayload()
      Returns true if the complete message comprises additional data in Buffers 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