public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame implements SpdySynStreamFrame
SpdySynStreamFrame
implementation.构造器和说明 |
---|
DefaultSpdySynStreamFrame(int streamId,
int associatedToStreamId,
byte priority)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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.
|
java.lang.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
在接口中 SpdySynStreamFrame
public void setAssociatedToStreamId(int associatedToStreamId)
SpdySynStreamFrame
setAssociatedToStreamId
在接口中 SpdySynStreamFrame
public byte getPriority()
SpdySynStreamFrame
getPriority
在接口中 SpdySynStreamFrame
public void setPriority(byte priority)
SpdySynStreamFrame
setPriority
在接口中 SpdySynStreamFrame
public boolean isUnidirectional()
SpdySynStreamFrame
true
if the stream created with this frame is to be
considered half-closed to the receiver.isUnidirectional
在接口中 SpdySynStreamFrame
public void setUnidirectional(boolean unidirectional)
SpdySynStreamFrame
setUnidirectional
在接口中 SpdySynStreamFrame
public java.lang.String toString()
toString
在类中 DefaultSpdyHeadersFrame