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. |
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.
|
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 SpdyHeadersFrame setStreamId(int streamId)
SpdyStreamFrame
setStreamId
in interface SpdyHeadersFrame
setStreamId
in interface SpdyStreamFrame
setStreamId
in class DefaultSpdyStreamFrame
public SpdyHeadersFrame setLast(boolean last)
SpdyStreamFrame
setLast
in interface SpdyHeadersFrame
setLast
in interface SpdyStreamFrame
setLast
in class DefaultSpdyStreamFrame
public 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 SpdyHeadersFrame 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 SpdyHeadersFrame setTruncated()
SpdyHeadersFrame
setTruncated
in interface SpdyHeadersFrame
public SpdyHeaders headers()
SpdyHeadersFrame
SpdyHeaders
.headers
in interface SpdyHeadersFrame
protected void appendHeaders(StringBuilder buf)
Copyright © 2008–2015 The Netty Project. All rights reserved.