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, setTruncatedgetStreamId, isLast, setLast, setStreamIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitheaders, isInvalid, isTruncated, setInvalid, setTruncatedgetStreamId, isLast, setLast, setStreamIdpublic 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()
SpdySynStreamFramegetAssociatedToStreamId 在接口中 SpdySynStreamFramepublic void setAssociatedToStreamId(int associatedToStreamId)
SpdySynStreamFramesetAssociatedToStreamId 在接口中 SpdySynStreamFramepublic byte getPriority()
SpdySynStreamFramegetPriority 在接口中 SpdySynStreamFramepublic void setPriority(byte priority)
SpdySynStreamFramesetPriority 在接口中 SpdySynStreamFramepublic boolean isUnidirectional()
SpdySynStreamFrametrue if the stream created with this frame is to be
considered half-closed to the receiver.isUnidirectional 在接口中 SpdySynStreamFramepublic void setUnidirectional(boolean unidirectional)
SpdySynStreamFramesetUnidirectional 在接口中 SpdySynStreamFramepublic java.lang.String toString()
toString 在类中 DefaultSpdyHeadersFrame