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, 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 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 SpdyHeaders
public SpdySynStreamFrame setStreamId(int streamId)
SpdyStreamFrame
setStreamId
在接口中 SpdyHeadersFrame
setStreamId
在接口中 SpdyStreamFrame
setStreamId
在接口中 SpdySynStreamFrame
setStreamId
在类中 DefaultSpdyHeadersFrame
public SpdySynStreamFrame setLast(boolean last)
SpdyStreamFrame
setLast
在接口中 SpdyHeadersFrame
setLast
在接口中 SpdyStreamFrame
setLast
在接口中 SpdySynStreamFrame
setLast
在类中 DefaultSpdyHeadersFrame
public SpdySynStreamFrame setInvalid()
SpdyHeadersFrame
setInvalid
在接口中 SpdyHeadersFrame
setInvalid
在接口中 SpdySynStreamFrame
setInvalid
在类中 DefaultSpdyHeadersFrame
public int associatedStreamId()
SpdySynStreamFrame
associatedStreamId
在接口中 SpdySynStreamFrame
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)
SpdySynStreamFrame
setAssociatedStreamId
在接口中 SpdySynStreamFrame
public byte priority()
SpdySynStreamFrame
priority
在接口中 SpdySynStreamFrame
public SpdySynStreamFrame 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 SpdySynStreamFrame setUnidirectional(boolean unidirectional)
SpdySynStreamFrame
setUnidirectional
在接口中 SpdySynStreamFrame
public java.lang.String toString()
toString
在类中 DefaultSpdyHeadersFrame