public class DefaultSpdyHeadersFrame extends DefaultSpdyStreamFrame implements SpdyHeadersFrame
SpdyHeadersFrame
implementation.构造器和说明 |
---|
DefaultSpdyHeadersFrame(int streamId)
Creates a new instance.
|
DefaultSpdyHeadersFrame(int streamId,
boolean validate)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
appendHeaders(java.lang.StringBuilder buf) |
SpdyHeaders |
headers()
Returns the
SpdyHeaders . |
boolean |
isInvalid()
Returns
true if this header block is invalid. |
boolean |
isTruncated()
Returns
true if this header block has been truncated due to
length restrictions. |
SpdyHeadersFrame |
setInvalid()
Marks this header block as invalid.
|
SpdyHeadersFrame |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
SpdyHeadersFrame |
setStreamId(int streamId)
Sets the Stream-ID of this frame.
|
SpdyHeadersFrame |
setTruncated()
Mark this header block as truncated.
|
java.lang.String |
toString() |
isLast, streamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isLast, streamId
public DefaultSpdyHeadersFrame(int streamId)
streamId
- the Stream-ID of this framepublic DefaultSpdyHeadersFrame(int streamId, boolean validate)
streamId
- the Stream-ID of this framevalidate
- validate the header names and values when adding them to the SpdyHeaders
public SpdyHeadersFrame setStreamId(int streamId)
SpdyStreamFrame
setStreamId
在接口中 SpdyHeadersFrame
setStreamId
在接口中 SpdyStreamFrame
setStreamId
在类中 DefaultSpdyStreamFrame
public SpdyHeadersFrame setLast(boolean last)
SpdyStreamFrame
setLast
在接口中 SpdyHeadersFrame
setLast
在接口中 SpdyStreamFrame
setLast
在类中 DefaultSpdyStreamFrame
public boolean isInvalid()
SpdyHeadersFrame
true
if this header block is invalid.
A RST_STREAM frame with code PROTOCOL_ERROR should be sent.isInvalid
在接口中 SpdyHeadersFrame
public SpdyHeadersFrame setInvalid()
SpdyHeadersFrame
setInvalid
在接口中 SpdyHeadersFrame
public boolean isTruncated()
SpdyHeadersFrame
true
if this header block has been truncated due to
length restrictions.isTruncated
在接口中 SpdyHeadersFrame
public SpdyHeadersFrame setTruncated()
SpdyHeadersFrame
setTruncated
在接口中 SpdyHeadersFrame
public SpdyHeaders headers()
SpdyHeadersFrame
SpdyHeaders
.headers
在接口中 SpdyHeadersFrame
public java.lang.String toString()
toString
在类中 java.lang.Object
protected void appendHeaders(java.lang.StringBuilder buf)