public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame 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.
|
boolean |
isUnidirectional()
Returns
true if the stream created with this frame is to be
considered half-closed to the receiver. |
void |
setAssociatedToStreamId(int associatedToStreamId)
Sets the Associated-To-Stream-ID of this frame.
|
void |
setPriority(byte priority)
Sets the priority of the stream.
|
void |
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, setInvalid, setTruncated
getStreamId, isLast, setLast, setStreamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
headers, isInvalid, isTruncated, setInvalid, setTruncated
getStreamId, isLast, setLast, setStreamId
public 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 getAssociatedToStreamId()
SpdySynStreamFrame
getAssociatedToStreamId
in interface SpdySynStreamFrame
public void setAssociatedToStreamId(int associatedToStreamId)
SpdySynStreamFrame
setAssociatedToStreamId
in interface SpdySynStreamFrame
public byte getPriority()
SpdySynStreamFrame
getPriority
in interface SpdySynStreamFrame
public void 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 void setUnidirectional(boolean unidirectional)
SpdySynStreamFrame
setUnidirectional
in interface SpdySynStreamFrame
public String toString()
toString
in class DefaultSpdyHeadersFrame
Copyright © 2008-2016 The Netty Project. All Rights Reserved.