public class DefaultSpdyHeadersFrame extends DefaultSpdyStreamFrame implements SpdyHeadersFrame
SpdyHeadersFrame
implementation.Constructor and Description |
---|
DefaultSpdyHeadersFrame(int streamId)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
appendHeaders(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.
|
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
in interface SpdyHeadersFrame
public void setInvalid()
SpdyHeadersFrame
setInvalid
in interface SpdyHeadersFrame
public boolean isTruncated()
SpdyHeadersFrame
true
if this header block has been truncated due to
length restrictions.isTruncated
in interface SpdyHeadersFrame
public void setTruncated()
SpdyHeadersFrame
setTruncated
in interface SpdyHeadersFrame
public SpdyHeaders headers()
SpdyHeadersFrame
SpdyHeaders
.headers
in interface SpdyHeadersFrame
protected void appendHeaders(StringBuilder buf)
Copyright © 2008-2016 The Netty Project. All Rights Reserved.