public class DefaultSpdyHeaders extends SpdyHeaders
SpdyHeaders.HttpNames
EMPTY_HEADERS
限定符和类型 | 方法和说明 |
---|---|
SpdyHeaders |
add(java.lang.String name,
java.lang.Iterable<?> values)
Adds a new header with the specified name and values.
|
SpdyHeaders |
add(java.lang.String name,
java.lang.Object value)
Adds a new header with the specified name and value.
|
SpdyHeaders |
clear()
Removes all headers from this frame.
|
boolean |
contains(java.lang.String name)
Returns
true if and only if there is a header with the specified
header name. |
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> |
entries()
Returns all header names and values that this frame contains.
|
java.lang.String |
get(java.lang.String name)
Returns the header value with the specified header name.
|
java.util.List<java.lang.String> |
getAll(java.lang.String name)
Returns the header values with the specified header name.
|
boolean |
isEmpty()
Checks if no header exists.
|
java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> |
iterator() |
java.util.Set<java.lang.String> |
names()
Returns the
Set of all header names that this frame contains. |
SpdyHeaders |
remove(java.lang.String name)
Removes the header with the specified name.
|
SpdyHeaders |
set(java.lang.String name,
java.lang.Iterable<?> values)
Sets a new header with the specified name and values.
|
SpdyHeaders |
set(java.lang.String name,
java.lang.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(java.lang.String name, java.lang.Object value)
SpdyHeaders
add
在类中 SpdyHeaders
public SpdyHeaders remove(java.lang.String name)
SpdyHeaders
remove
在类中 SpdyHeaders
public SpdyHeaders set(java.lang.String name, java.lang.Object value)
SpdyHeaders
set
在类中 SpdyHeaders
public SpdyHeaders set(java.lang.String name, java.lang.Iterable<?> values)
SpdyHeaders
set
在类中 SpdyHeaders
public SpdyHeaders clear()
SpdyHeaders
clear
在类中 SpdyHeaders
public java.lang.String get(java.lang.String name)
SpdyHeaders
get
在类中 SpdyHeaders
null
if there is no such headerpublic java.util.List<java.lang.String> getAll(java.lang.String name)
SpdyHeaders
getAll
在类中 SpdyHeaders
List
of header values. An empty list if there is no
such header.public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> entries()
SpdyHeaders
entries
在类中 SpdyHeaders
List
of the header name-value pairs. An empty list
if there is no header in this message.public java.util.Iterator<java.util.Map.Entry<java.lang.String,java.lang.String>> iterator()
iterator
在接口中 java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
iterator
在类中 SpdyHeaders
public boolean contains(java.lang.String name)
SpdyHeaders
true
if and only if there is a header with the specified
header name.contains
在类中 SpdyHeaders
public java.util.Set<java.lang.String> names()
SpdyHeaders
Set
of all header names that this frame contains.names
在类中 SpdyHeaders
public SpdyHeaders add(java.lang.String name, java.lang.Iterable<?> values)
SpdyHeaders
add
在类中 SpdyHeaders
public boolean isEmpty()
SpdyHeaders
isEmpty
在类中 SpdyHeaders