Top Fields Constructors Methods
io.undertow.server.protocol.framed

public Class SendFrameHeader

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, io.undertow.connector.PooledByteBuffer

Author
Stuart Douglas

Field Summary

Modifier and TypeField and Description
private final boolean
private final PooledByteBuffer
private final int
private final ByteBuffer

Constructor Summary

AccessConstructor and Description
public
SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired)

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

public
SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer)

public

Method Summary

Modifier and TypeMethod and Description
public PooledByteBuffer

Returns:

The header byte buffer
getByteBuffer
()

public int
public ByteBuffer
public boolean
isAnotherFrameRequired()

Returns true if another frame is required after this one.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

anotherFrameRequiredback to summary
private final boolean anotherFrameRequired
byteBufferback to summary
private final PooledByteBuffer byteBuffer
reminingInBufferback to summary
private final int reminingInBuffer
trailerback to summary
private final ByteBuffer trailer

Constructor Detail

SendFrameHeaderback to summary
public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired)
SendFrameHeaderback to summary
public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer, boolean anotherFrameRequired, ByteBuffer trailer)
SendFrameHeaderback to summary
public SendFrameHeader(int reminingInBuffer, PooledByteBuffer byteBuffer)
SendFrameHeaderback to summary
public SendFrameHeader(PooledByteBuffer byteBuffer)

Method Detail

getByteBufferback to summary
public PooledByteBuffer getByteBuffer()
Returns:PooledByteBuffer

The header byte buffer

getRemainingInBufferback to summary
public int getRemainingInBuffer()
getTrailerback to summary
public ByteBuffer getTrailer()
isAnotherFrameRequiredback to summary
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.