Class SpdyHeader
java.lang.Object
org.glassfish.grizzly.spdy.frames.SpdyHeader
- All Implemented Interfaces:
org.glassfish.grizzly.Cacheable
The header of the frame.
- Since:
- 3.0
-
Field Details
-
buffer
protected org.glassfish.grizzly.Buffer buffer -
flags
protected int flags -
length
protected int length -
control
protected boolean control -
version
protected int version -
type
protected int type -
streamId
protected int streamId
-
-
Method Details
-
wrap
-
getFlags
public int getFlags()- Returns:
- flags for the frame. Only the first 8 bits are relevant.
-
getLength
public int getLength()- Returns:
- the length of this frame.
-
isControl
public boolean isControl()- Returns:
- true if this is a control frame, otherwise false
-
getVersion
public int getVersion()- Returns:
- the SPDY version of this control frame. Not relevant for data frames.
-
getType
public int getType()- Returns:
- the type of the control frame. Not relevant for data frames.
-
getStreamId
public int getStreamId()- Returns:
- the stream ID associated with the data frame. Not relevant for control frames.
-
getUnderlying
public org.glassfish.grizzly.Buffer getUnderlying()- Returns:
-
toString
-
recycle
public void recycle()- Specified by:
recyclein interfaceorg.glassfish.grizzly.Cacheable
-