public class DefaultSpdySynStreamFrame extends DefaultSpdyHeaderBlock implements SpdySynStreamFrame
SpdySynStreamFrame implementation.| Constructor and Description |
|---|
DefaultSpdySynStreamFrame(int streamId,
int associatedToStreamId,
byte priority)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAssociatedToStreamId()
Returns the Associated-To-Stream-ID of this frame.
|
byte |
getPriority()
Returns the priority of the stream.
|
int |
getStreamId()
Returns the Stream-ID of this frame.
|
boolean |
isLast()
Returns
true if this frame is the last frame to be transmitted
on the stream. |
boolean |
isUnidirectional()
Returns
true if the stream created with this frame is to be
considered half-closed to the receiver. |
SpdySynStreamFrame |
setAssociatedToStreamId(int associatedToStreamId)
Sets the Associated-To-Stream-ID of this frame.
|
SpdySynStreamFrame |
setInvalid()
Marks this header block as invalid.
|
SpdySynStreamFrame |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
SpdySynStreamFrame |
setPriority(byte priority)
Sets the priority of the stream.
|
SpdySynStreamFrame |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
SpdySynStreamFrame |
setUnidirectional(boolean unidirectional)
Sets if the stream created with this frame is to be considered
half-closed to the receiver.
|
String |
toString() |
appendHeaders, headers, isInvalidclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitheaders, isInvalidpublic DefaultSpdySynStreamFrame(int streamId,
int associatedToStreamId,
byte priority)
streamId - the Stream-ID of this frameassociatedToStreamId - the Associated-To-Stream-ID of this framepriority - the priority of the streampublic int getStreamId()
SpdyStreamFramegetStreamId in interface SpdyStreamFramepublic SpdySynStreamFrame setStreamId(int streamId)
SpdyStreamFramesetStreamId in interface SpdyStreamFramesetStreamId in interface SpdySynStreamFramepublic int getAssociatedToStreamId()
SpdySynStreamFramegetAssociatedToStreamId in interface SpdySynStreamFramepublic SpdySynStreamFrame setAssociatedToStreamId(int associatedToStreamId)
SpdySynStreamFramesetAssociatedToStreamId in interface SpdySynStreamFramepublic byte getPriority()
SpdySynStreamFramegetPriority in interface SpdySynStreamFramepublic SpdySynStreamFrame setPriority(byte priority)
SpdySynStreamFramesetPriority in interface SpdySynStreamFramepublic boolean isLast()
SpdyStreamFrametrue if this frame is the last frame to be transmitted
on the stream.isLast in interface SpdyStreamFramepublic SpdySynStreamFrame setLast(boolean last)
SpdyStreamFramesetLast in interface SpdyStreamFramesetLast in interface SpdySynStreamFramepublic boolean isUnidirectional()
SpdySynStreamFrametrue if the stream created with this frame is to be
considered half-closed to the receiver.isUnidirectional in interface SpdySynStreamFramepublic SpdySynStreamFrame setUnidirectional(boolean unidirectional)
SpdySynStreamFramesetUnidirectional in interface SpdySynStreamFramepublic SpdySynStreamFrame setInvalid()
SpdyHeaderBlocksetInvalid in interface SpdyHeaderBlocksetInvalid in interface SpdySynStreamFramesetInvalid in class DefaultSpdyHeaderBlockCopyright © 2008-2013 The Netty Project. All Rights Reserved.