Class DefaultSpdyStreamFrame
java.lang.Object
org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
- All Implemented Interfaces:
SpdyFrame
,SpdyStreamFrame
- Direct Known Subclasses:
DefaultSpdyDataFrame
,DefaultSpdyHeadersFrame
,DefaultSpdyRstStreamFrame
The default
SpdyStreamFrame
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultSpdyStreamFrame
(int streamId) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Stream-ID of this frame.boolean
isLast()
Returnstrue
if this frame is the last frame to be transmitted on the stream.void
setLast
(boolean last) Sets if this frame is the last frame to be transmitted on the stream.void
setStreamId
(int streamId) Sets the Stream-ID of this frame.
-
Field Details
-
streamId
private int streamId -
last
private boolean last
-
-
Constructor Details
-
DefaultSpdyStreamFrame
protected DefaultSpdyStreamFrame(int streamId) Creates a new instance.- Parameters:
streamId
- the Stream-ID of this frame
-
-
Method Details
-
getStreamId
public int getStreamId()Description copied from interface:SpdyStreamFrame
Returns the Stream-ID of this frame.- Specified by:
getStreamId
in interfaceSpdyStreamFrame
-
setStreamId
public void setStreamId(int streamId) Description copied from interface:SpdyStreamFrame
Sets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamId
in interfaceSpdyStreamFrame
-
isLast
public boolean isLast()Description copied from interface:SpdyStreamFrame
Returnstrue
if this frame is the last frame to be transmitted on the stream.- Specified by:
isLast
in interfaceSpdyStreamFrame
-
setLast
public void setLast(boolean last) Description copied from interface:SpdyStreamFrame
Sets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLast
in interfaceSpdyStreamFrame
-