public class DefaultSpdyHeaders extends SpdyHeaders
SpdyHeaders.HttpNames
EMPTY_HEADERS
Modifier and Type | Method and Description |
---|---|
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
in class SpdyHeaders
public SpdyHeaders remove(java.lang.String name)
SpdyHeaders
remove
in class SpdyHeaders
public SpdyHeaders set(java.lang.String name, java.lang.Object value)
SpdyHeaders
set
in class SpdyHeaders
public SpdyHeaders set(java.lang.String name, java.lang.Iterable<?> values)
SpdyHeaders
set
in class SpdyHeaders
public SpdyHeaders clear()
SpdyHeaders
clear
in class SpdyHeaders
public java.lang.String get(java.lang.String name)
SpdyHeaders
get
in class SpdyHeaders
null
if there is no such headerpublic java.util.List<java.lang.String> getAll(java.lang.String name)
SpdyHeaders
getAll
in class 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
in class 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
in interface java.lang.Iterable<java.util.Map.Entry<java.lang.String,java.lang.String>>
iterator
in class SpdyHeaders
public boolean contains(java.lang.String name)
SpdyHeaders
true
if and only if there is a header with the specified
header name.contains
in class SpdyHeaders
public java.util.Set<java.lang.String> names()
SpdyHeaders
Set
of all header names that this frame contains.names
in class SpdyHeaders
public SpdyHeaders add(java.lang.String name, java.lang.Iterable<?> values)
SpdyHeaders
add
in class SpdyHeaders
public boolean isEmpty()
SpdyHeaders
isEmpty
in class SpdyHeaders
Copyright © 2008–2018 The Netty Project. All rights reserved.