public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame implements SpdySynStreamFrame
SpdySynStreamFrame implementation.| 构造器和说明 |
|---|
DefaultSpdySynStreamFrame(int streamId,
int associatedStreamId,
byte priority)
Creates a new instance.
|
DefaultSpdySynStreamFrame(int streamId,
int associatedStreamId,
byte priority,
boolean validateHeaders)
Creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
java.lang.String |
toString() |
appendHeaders, headers, isInvalid, isTruncated, setTruncatedisLast, streamIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitheaders, isInvalid, isTruncated, setTruncatedisLast, streamIdpublic 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 DefaultSpdySynStreamFrame(int streamId,
int associatedStreamId,
byte priority,
boolean validateHeaders)
streamId - the Stream-ID of this frameassociatedStreamId - the Associated-To-Stream-ID of this framepriority - the priority of the streamvalidateHeaders - validate the header names and values when adding them to the SpdyHeaderspublic SpdySynStreamFrame setStreamId(int streamId)
SpdyStreamFramesetStreamId 在接口中 SpdyHeadersFramesetStreamId 在接口中 SpdyStreamFramesetStreamId 在接口中 SpdySynStreamFramesetStreamId 在类中 DefaultSpdyHeadersFramepublic SpdySynStreamFrame setLast(boolean last)
SpdyStreamFramesetLast 在接口中 SpdyHeadersFramesetLast 在接口中 SpdyStreamFramesetLast 在接口中 SpdySynStreamFramesetLast 在类中 DefaultSpdyHeadersFramepublic SpdySynStreamFrame setInvalid()
SpdyHeadersFramesetInvalid 在接口中 SpdyHeadersFramesetInvalid 在接口中 SpdySynStreamFramesetInvalid 在类中 DefaultSpdyHeadersFramepublic int associatedStreamId()
SpdySynStreamFrameassociatedStreamId 在接口中 SpdySynStreamFramepublic SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)
SpdySynStreamFramesetAssociatedStreamId 在接口中 SpdySynStreamFramepublic byte priority()
SpdySynStreamFramepriority 在接口中 SpdySynStreamFramepublic SpdySynStreamFrame 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 SpdySynStreamFrame setUnidirectional(boolean unidirectional)
SpdySynStreamFramesetUnidirectional 在接口中 SpdySynStreamFramepublic java.lang.String toString()
toString 在类中 DefaultSpdyHeadersFrame