Class SendFrameHeader
java.lang.Object
io.undertow.server.protocol.framed.SendFrameHeader
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionSendFrameHeader
(int reminingInBuffer, PooledByteBuffer byteBuffer) SendFrameHeader
(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired) SendFrameHeader
(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired, ByteBuffer trailer) SendFrameHeader
(PooledByteBuffer byteBuffer) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns true if another frame is required after this one.
-
Constructor Details
-
SendFrameHeader
public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired) -
SendFrameHeader
public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired, ByteBuffer trailer) -
SendFrameHeader
-
SendFrameHeader
-
-
Method Details
-
getByteBuffer
- Returns:
- The header byte buffer
-
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.
-