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
-
public class DataFrame extends StreamFrame
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.http2.frames.Frame
DEFAULT_MAX_LENGTH, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_LENGTH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getData()
boolean
isEndStream()
int
padding()
int
remaining()
java.lang.String
toString()
DataFrame
withStreamId(int streamId)
-
Methods inherited from class org.eclipse.jetty.http2.frames.StreamFrame
getStreamId
-
-
-
-
Method Detail
-
getData
public java.nio.ByteBuffer 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
public DataFrame withStreamId(int streamId)
- Specified by:
withStreamId
in classStreamFrame
-
-