public interface SpdyHeaderBlock
SpdySynStreamFrame
, SpdySynReplyFrame
, and
SpdyHeadersFrame
.SpdyHeaders
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String name,
Object value)
Adds a new header with the specified name and value.
|
void |
clearHeaders()
Removes all headers from this block.
|
boolean |
containsHeader(String name)
Returns
true if and only if there is a header with the specified
header name. |
String |
getHeader(String name)
Returns the header value with the specified header name.
|
Set<String> |
getHeaderNames()
Returns the
Set of all header names that this block contains. |
List<Map.Entry<String,String>> |
getHeaders()
Returns all header names and values that this block contains.
|
List<String> |
getHeaders(String name)
Returns the header values with the specified header name.
|
boolean |
isInvalid()
Returns
true if this header block is invalid. |
void |
removeHeader(String name)
Removes the header with the specified name.
|
void |
setHeader(String name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
void |
setHeader(String name,
Object value)
Sets a new header with the specified name and value.
|
void |
setInvalid()
Marks this header block as invalid.
|
boolean isInvalid()
true
if this header block is invalid.
A RST_STREAM frame with code PROTOCOL_ERROR should be sent.void setInvalid()
String getHeader(String name)
null
if there is no such headerList<String> getHeaders(String name)
List
of header values. An empty list if there is no
such header.List<Map.Entry<String,String>> getHeaders()
List
of the header name-value pairs. An empty list
if there is no header in this message.boolean containsHeader(String name)
true
if and only if there is a header with the specified
header name.Set<String> getHeaderNames()
Set
of all header names that this block contains.void addHeader(String name, Object value)
void setHeader(String name, Object value)
void setHeader(String name, Iterable<?> values)
void removeHeader(String name)
void clearHeaders()
Copyright © 2008-2013 The Netty Project. All Rights Reserved.