public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame implements SpdySynStreamFrame
SpdySynStreamFrame
implementation.Constructor and Description |
---|
DefaultSpdySynStreamFrame(int streamId,
int associatedStreamId,
byte priority)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
associatedStreamId()
Returns the Associated-To-Stream-ID of this frame.
|
boolean |
isUnidirectional()
Returns
true if the stream created with this frame is to be
considered half-closed to the receiver. |
byte |
priority()
Returns the priority of the stream.
|
SpdySynStreamFrame |
setAssociatedStreamId(int associatedStreamId)
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, isInvalid, isTruncated, setTruncated
isLast, streamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
headers, isInvalid, isTruncated, setTruncated
isLast, streamId
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority)
streamId
- the Stream-ID of this frameassociatedStreamId
- the Associated-To-Stream-ID of this framepriority
- the priority of the streampublic SpdySynStreamFrame setStreamId(int streamId)
SpdyStreamFrame
setStreamId
in interface SpdyHeadersFrame
setStreamId
in interface SpdyStreamFrame
setStreamId
in interface SpdySynStreamFrame
setStreamId
in class DefaultSpdyHeadersFrame
public SpdySynStreamFrame setLast(boolean last)
SpdyStreamFrame
setLast
in interface SpdyHeadersFrame
setLast
in interface SpdyStreamFrame
setLast
in interface SpdySynStreamFrame
setLast
in class DefaultSpdyHeadersFrame
public SpdySynStreamFrame setInvalid()
SpdyHeadersFrame
setInvalid
in interface SpdyHeadersFrame
setInvalid
in interface SpdySynStreamFrame
setInvalid
in class DefaultSpdyHeadersFrame
public int associatedStreamId()
SpdySynStreamFrame
associatedStreamId
in interface SpdySynStreamFrame
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)
SpdySynStreamFrame
setAssociatedStreamId
in interface SpdySynStreamFrame
public byte priority()
SpdySynStreamFrame
priority
in interface SpdySynStreamFrame
public SpdySynStreamFrame setPriority(byte priority)
SpdySynStreamFrame
setPriority
in interface SpdySynStreamFrame
public boolean isUnidirectional()
SpdySynStreamFrame
true
if the stream created with this frame is to be
considered half-closed to the receiver.isUnidirectional
in interface SpdySynStreamFrame
public SpdySynStreamFrame setUnidirectional(boolean unidirectional)
SpdySynStreamFrame
setUnidirectional
in interface SpdySynStreamFrame
public String toString()
toString
in class DefaultSpdyHeadersFrame
Copyright © 2008–2015 The Netty Project. All rights reserved.