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 classprivate final classNested classes/interfaces inherited from class org.jboss.netty.handler.codec.spdy.SpdyHeaders
SpdyHeaders.HttpNames -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final DefaultSpdyHeaders.HeaderEntry[]private final DefaultSpdyHeaders.HeaderEntryFields 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 voidclear()Removes all headers from this frame.booleanReturnstrueif 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 booleanReturns the header value with the specified header name.Returns the header values with the specified header name.private static intprivate static intindex(int hash) booleanisEmpty()Checks if no header exists.iterator()names()Returns theSetof all header names that this frame contains.Removes the header with the specified name.private voidSets a new header with the specified name and values.Sets a new header with the specified name and value.private static StringMethods 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, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SpdyHeadersAdds a new header with the specified name and value.- Specified by:
addin classSpdyHeaders
-
add0
-
remove
Description copied from class:SpdyHeadersRemoves the header with the specified name.- Specified by:
removein classSpdyHeaders
-
remove0
-
set
Description copied from class:SpdyHeadersSets 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:
setin classSpdyHeaders
-
set
Description copied from class:SpdyHeadersSets 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:
setin classSpdyHeaders
-
clear
Description copied from class:SpdyHeadersRemoves all headers from this frame.- Specified by:
clearin classSpdyHeaders
-
get
Description copied from class:SpdyHeadersReturns 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:
getin classSpdyHeaders- Returns:
- the header value or
nullif there is no such header
-
getAll
Description copied from class:SpdyHeadersReturns the header values with the specified header name.- Specified by:
getAllin classSpdyHeaders- Returns:
- the
Listof header values. An empty list if there is no such header.
-
entries
Description copied from class:SpdyHeadersReturns all header names and values that this frame contains.- Specified by:
entriesin classSpdyHeaders- Returns:
- the
Listof the header name-value pairs. An empty list if there is no header in this message.
-
iterator
-
contains
Description copied from class:SpdyHeadersReturnstrueif and only if there is a header with the specified header name.- Specified by:
containsin classSpdyHeaders
-
names
Description copied from class:SpdyHeadersReturns theSetof all header names that this frame contains.- Specified by:
namesin classSpdyHeaders
-
add
Description copied from class:SpdyHeadersAdds 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:
addin classSpdyHeaders
-
isEmpty
public boolean isEmpty()Description copied from class:SpdyHeadersChecks if no header exists.- Specified by:
isEmptyin classSpdyHeaders
-
toString
-