Class SendFrameHeader

java.lang.Object
io.undertow.server.protocol.framed.SendFrameHeader

public class SendFrameHeader extends Object
Author:
Stuart Douglas
  • Constructor Details

    • SendFrameHeader

      public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired)
    • SendFrameHeader

      public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired, ByteBuffer trailer)
    • SendFrameHeader

      public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer)
    • SendFrameHeader

      public SendFrameHeader(PooledByteBuffer byteBuffer)
  • Method Details

    • getByteBuffer

      public PooledByteBuffer getByteBuffer()
      Returns:
      The header byte buffer
    • getTrailer

      public ByteBuffer getTrailer()
    • getRemainingInBuffer

      public int getRemainingInBuffer()
      Returns:
    • isAnotherFrameRequired

      public boolean isAnotherFrameRequired()
      Returns true if another frame is required after this one. Note that returning false does not mean that this is the last frame. This is used for protocols that require a trailing packet after all data has been written.