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_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionDataFrame(int streamId, ByteBuffer data, boolean endStream) DataFrame(int streamId, ByteBuffer data, boolean endStream, int padding) DataFrame(ByteBuffer data, boolean endStream) -
Method Summary
Modifier and TypeMethodDescriptiongetData()booleanintpadding()inttoString()withStreamId(int streamId) Methods inherited from class org.eclipse.jetty.http2.frames.StreamFrame
getStreamId
-
Constructor Details
-
DataFrame
-
DataFrame
-
DataFrame
-
-
Method Details
-
getData
-
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.
-
withStreamId
- Specified by:
withStreamIdin classStreamFrame
-
toString
-