Package org.eclipse.jetty.http2.frames
Class DataFrame
java.lang.Object
org.eclipse.jetty.http2.frames.Frame
org.eclipse.jetty.http2.frames.StreamFrame
org.eclipse.jetty.http2.frames.DataFrame
-
Field Summary
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_SIZE, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_SIZE
-
Constructor Summary
ConstructorDescriptionDataFrame
(int streamId, ByteBuffer data, boolean endStream) DataFrame
(int streamId, ByteBuffer data, boolean endStream, int padding) DataFrame
(ByteBuffer data, boolean endStream) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
padding()
int
toString()
withStreamId
(int streamId) Methods inherited from class org.eclipse.jetty.http2.frames.StreamFrame
getStreamId
-
Constructor Details
-
DataFrame
-
DataFrame
-
DataFrame
-
-
Method Details
-
getByteBuffer
-
isEndStream
public boolean isEndStream() -
remaining
public int remaining()- Returns:
- the number of data bytes remaining.
-
padding
public int padding()- Returns:
- the number of bytes used for padding that count towards flow control.
-
flowControlLength
public int flowControlLength()- Returns:
- the flow control length, equivalent to the sum of data bytes and padding bytes
-
withStreamId
- Specified by:
withStreamId
in classStreamFrame
-
toString
-