public class DefaultSpdyHeaders extends SpdyHeaders
SpdyHeaders.HttpNames
EMPTY_HEADERS
Modifier and Type | Method and Description |
---|---|
SpdyHeaders |
add(String name,
Iterable<?> values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
add(String name,
Object value)
Adds a new header with the specified name and value.
|
SpdyHeaders |
clear()
Removes all headers from this frame.
|
boolean |
contains(String name)
Returns
true if and only if there is a header with the specified
header name. |
List<Map.Entry<String,String>> |
entries()
Returns all header names and values that this frame contains.
|
String |
get(String name)
Returns the header value with the specified header name.
|
List<String> |
getAll(String name)
Returns the header values with the specified header name.
|
boolean |
isEmpty()
Checks if no header exists.
|
Iterator<Map.Entry<String,String>> |
iterator() |
Set<String> |
names()
Returns the
Set of all header names that this frame contains. |
SpdyHeaders |
remove(String name)
Removes the header with the specified name.
|
SpdyHeaders |
set(String name,
Iterable<?> values)
Sets a new header with the specified name and values.
|
SpdyHeaders |
set(String name,
Object value)
Sets a new header with the specified name and value.
|
addHeader, getHeader, getHeader, getHost, getMethod, getScheme, getStatus, getUrl, getVersion, removeHost, removeMethod, removeScheme, removeStatus, removeUrl, removeVersion, setHeader, setHeader, setHost, setMethod, setScheme, setStatus, setUrl, setVersion
public SpdyHeaders add(String name, Object value)
SpdyHeaders
add
in class SpdyHeaders
public SpdyHeaders remove(String name)
SpdyHeaders
remove
in class SpdyHeaders
public SpdyHeaders set(String name, Object value)
SpdyHeaders
set
in class SpdyHeaders
public SpdyHeaders set(String name, Iterable<?> values)
SpdyHeaders
set
in class SpdyHeaders
public SpdyHeaders clear()
SpdyHeaders
clear
in class SpdyHeaders
public String get(String name)
SpdyHeaders
get
in class SpdyHeaders
null
if there is no such headerpublic List<String> getAll(String name)
SpdyHeaders
getAll
in class SpdyHeaders
List
of header values. An empty list if there is no
such header.public List<Map.Entry<String,String>> entries()
SpdyHeaders
entries
in class SpdyHeaders
List
of the header name-value pairs. An empty list
if there is no header in this message.public boolean contains(String name)
SpdyHeaders
true
if and only if there is a header with the specified
header name.contains
in class SpdyHeaders
public Set<String> names()
SpdyHeaders
Set
of all header names that this frame contains.names
in class SpdyHeaders
public SpdyHeaders add(String name, Iterable<?> values)
SpdyHeaders
add
in class SpdyHeaders
public boolean isEmpty()
SpdyHeaders
isEmpty
in class SpdyHeaders
Copyright © 2008-2014 The Netty Project. All Rights Reserved.