Class DefaultSpdyHeaders
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyHeaders
org.jboss.netty.handler.codec.spdy.DefaultSpdyHeaders
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private final class
Nested classes/interfaces inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaders
SpdyHeaders.HttpNames
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final DefaultSpdyHeaders.HeaderEntry[]
private final DefaultSpdyHeaders.HeaderEntry
Fields inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaders
EMPTY_HEADERS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a new header with the specified name and values.Adds a new header with the specified name and value.private void
clear()
Removes all headers from this frame.boolean
Returnstrue
if and only if there is a header with the specified header name.entries()
Returns all header names and values that this frame contains.private static boolean
Returns the header value with the specified header name.Returns the header values with the specified header name.private static int
private static int
index
(int hash) boolean
isEmpty()
Checks if no header exists.iterator()
names()
Returns theSet
of all header names that this frame contains.Removes the header with the specified name.private void
Sets a new header with the specified name and values.Sets a new header with the specified name and value.private static String
Methods inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaders
addHeader, getHeader, getHeader, getHost, getMethod, getScheme, getStatus, getUrl, getVersion, removeHost, removeMethod, removeScheme, removeStatus, removeUrl, removeVersion, setHeader, setHeader, setHost, setMethod, setScheme, setStatus, setUrl, setVersion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
BUCKET_SIZE
private static final int BUCKET_SIZE- See Also:
-
entries
-
head
-
-
Constructor Details
-
DefaultSpdyHeaders
DefaultSpdyHeaders()
-
-
Method Details
-
hash
-
eq
-
index
private static int index(int hash) -
add
Description copied from class:SpdyHeaders
Adds a new header with the specified name and value.- Specified by:
add
in classSpdyHeaders
-
add0
-
remove
Description copied from class:SpdyHeaders
Removes the header with the specified name.- Specified by:
remove
in classSpdyHeaders
-
remove0
-
set
Description copied from class:SpdyHeaders
Sets a new header with the specified name and value. If there is an existing header with the same name, the existing header is removed.- Specified by:
set
in classSpdyHeaders
-
set
Description copied from class:SpdyHeaders
Sets a new header with the specified name and values. If there is an existing header with the same name, the existing header is removed.- Specified by:
set
in classSpdyHeaders
-
clear
Description copied from class:SpdyHeaders
Removes all headers from this frame.- Specified by:
clear
in classSpdyHeaders
-
get
Description copied from class:SpdyHeaders
Returns the header value with the specified header name. If there is more than one header value for the specified header name, the first value is returned.- Specified by:
get
in classSpdyHeaders
- Returns:
- the header value or
null
if there is no such header
-
getAll
Description copied from class:SpdyHeaders
Returns the header values with the specified header name.- Specified by:
getAll
in classSpdyHeaders
- Returns:
- the
List
of header values. An empty list if there is no such header.
-
entries
Description copied from class:SpdyHeaders
Returns all header names and values that this frame contains.- Specified by:
entries
in classSpdyHeaders
- Returns:
- the
List
of the header name-value pairs. An empty list if there is no header in this message.
-
iterator
-
contains
Description copied from class:SpdyHeaders
Returnstrue
if and only if there is a header with the specified header name.- Specified by:
contains
in classSpdyHeaders
-
names
Description copied from class:SpdyHeaders
Returns theSet
of all header names that this frame contains.- Specified by:
names
in classSpdyHeaders
-
add
Description copied from class:SpdyHeaders
Adds a new header with the specified name and values. If there is an existing header with the same name, the existing header is removed.- Specified by:
add
in classSpdyHeaders
-
isEmpty
public boolean isEmpty()Description copied from class:SpdyHeaders
Checks if no header exists.- Specified by:
isEmpty
in classSpdyHeaders
-
toString
-