public class DefaultSpdyHeadersFrame extends DefaultSpdyStreamFrame implements SpdyHeadersFrame
SpdyHeadersFrame
implementation.构造器和说明 |
---|
DefaultSpdyHeadersFrame(int streamId)
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. |
void |
setInvalid()
Marks this header block as invalid.
|
void |
setTruncated()
Mark this header block as truncated.
|
java.lang.String |
toString() |
getStreamId, isLast, setLast, setStreamId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStreamId, isLast, setLast, setStreamId
public DefaultSpdyHeadersFrame(int streamId)
streamId
- the Stream-ID of this framepublic boolean isInvalid()
SpdyHeadersFrame
true
if this header block is invalid.
A RST_STREAM frame with code PROTOCOL_ERROR should be sent.isInvalid
在接口中 SpdyHeadersFrame
public void setInvalid()
SpdyHeadersFrame
setInvalid
在接口中 SpdyHeadersFrame
public boolean isTruncated()
SpdyHeadersFrame
true
if this header block has been truncated due to
length restrictions.isTruncated
在接口中 SpdyHeadersFrame
public void 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)