Class MessagePart


  • public class MessagePart
    extends java.lang.Object
    Represents a part of a WebSocket message.
    • Method Detail

      • isFin

        public boolean isFin()
        Check if this is the final part.
        Returns:
        true if final
      • getRsv

        public int getRsv()
        Get the reserved bits.
        Returns:
        the reserved bits
      • getOpCode

        public byte getOpCode()
        Get the operation code.
        Returns:
        the operation code
      • getPayload

        public java.nio.ByteBuffer getPayload()
        Get the payload.
        Returns:
        the payload
      • getIntermediateHandler

        public SendHandler getIntermediateHandler()
        Get the intermediate handler.
        Returns:
        the intermediate handler
      • getEndHandler

        public SendHandler getEndHandler()
        Get the end handler.
        Returns:
        the end handler
      • setEndHandler

        public void setEndHandler​(SendHandler endHandler)
        Set the end handler.
        Parameters:
        endHandler - the end handler
      • getBlockingWriteTimeoutExpiry

        public long getBlockingWriteTimeoutExpiry()
        Get the blocking write timeout expiry.
        Returns:
        the blocking write timeout expiry