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 |
---|---|
void |
addHeader(String name,
Object value)
Deprecated.
|
protected void |
appendHeaders(StringBuilder buf) |
void |
clearHeaders()
Deprecated.
|
boolean |
containsHeader(String name)
Deprecated.
|
String |
getHeader(String name)
Deprecated.
|
Set<String> |
getHeaderNames()
Deprecated.
|
List<Map.Entry<String,String>> |
getHeaders()
Deprecated.
|
List<String> |
getHeaders(String name)
Deprecated.
|
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 |
removeHeader(String name)
Deprecated.
|
void |
setHeader(String name,
Iterable<?> values)
Deprecated.
|
void |
setHeader(String name,
Object value)
Deprecated.
|
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
@Deprecated public void addHeader(String name, Object value)
addHeader
in interface SpdyHeadersFrame
@Deprecated public void setHeader(String name, Object value)
setHeader
in interface SpdyHeadersFrame
@Deprecated public void setHeader(String name, Iterable<?> values)
setHeader
in interface SpdyHeadersFrame
@Deprecated public void removeHeader(String name)
removeHeader
in interface SpdyHeadersFrame
@Deprecated public void clearHeaders()
clearHeaders
in interface SpdyHeadersFrame
@Deprecated public String getHeader(String name)
getHeader
in interface SpdyHeadersFrame
@Deprecated public List<String> getHeaders(String name)
getHeaders
in interface SpdyHeadersFrame
@Deprecated public List<Map.Entry<String,String>> getHeaders()
getHeaders
in interface SpdyHeadersFrame
@Deprecated public boolean containsHeader(String name)
containsHeader
in interface SpdyHeadersFrame
@Deprecated public Set<String> getHeaderNames()
getHeaderNames
in interface SpdyHeadersFrame
protected void appendHeaders(StringBuilder buf)
Copyright © 2008-2015 The Netty Project. All Rights Reserved.