Package io.netty.handler.codec.http2
Class EmptyHttp2Headers
java.lang.Object
io.netty.handler.codec.EmptyHeaders<CharSequence,CharSequence,Http2Headers>
io.netty.handler.codec.http2.EmptyHttp2Headers
- All Implemented Interfaces:
Headers<CharSequence,
,CharSequence, Http2Headers> Http2Headers
,Iterable<Map.Entry<CharSequence,
CharSequence>>
@UnstableApi
public final class EmptyHttp2Headers
extends EmptyHeaders<CharSequence,CharSequence,Http2Headers>
implements Http2Headers
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.handler.codec.http2.Http2Headers
Http2Headers.PseudoHeaderName
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theHttp2Headers.PseudoHeaderName.AUTHORITY
header ornull
if there is no such headerauthority
(CharSequence authority) Sets theHttp2Headers.PseudoHeaderName.AUTHORITY
headerboolean
contains
(CharSequence name, CharSequence value, boolean caseInsensitive) Returnstrue
if a header with thename
andvalue
exists,false
otherwise.method()
Gets theHttp2Headers.PseudoHeaderName.METHOD
header ornull
if there is no such headermethod
(CharSequence method) Sets theHttp2Headers.PseudoHeaderName.METHOD
headerpath()
Gets theHttp2Headers.PseudoHeaderName.PATH
header ornull
if there is no such headerpath
(CharSequence path) Sets theHttp2Headers.PseudoHeaderName.PATH
headerscheme()
Gets theHttp2Headers.PseudoHeaderName.SCHEME
header ornull
if there is no such headerscheme
(CharSequence status) Sets theHttp2Headers.PseudoHeaderName.SCHEME
headerstatus()
Gets theHttp2Headers.PseudoHeaderName.STATUS
header ornull
if there is no such headerstatus
(CharSequence status) Sets theHttp2Headers.PseudoHeaderName.STATUS
headerMethods inherited from class io.netty.handler.codec.EmptyHeaders
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, equals, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, hashCode, isEmpty, iterator, names, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size, toString, valueIterator
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.netty.handler.codec.Headers
add, add, add, add, addBoolean, addByte, addChar, addDouble, addFloat, addInt, addLong, addObject, addObject, addObject, addShort, addTimeMillis, clear, contains, contains, containsBoolean, containsByte, containsChar, containsDouble, containsFloat, containsInt, containsLong, containsObject, containsShort, containsTimeMillis, get, get, getAll, getAllAndRemove, getAndRemove, getAndRemove, getBoolean, getBoolean, getBooleanAndRemove, getBooleanAndRemove, getByte, getByte, getByteAndRemove, getByteAndRemove, getChar, getChar, getCharAndRemove, getCharAndRemove, getDouble, getDouble, getDoubleAndRemove, getDoubleAndRemove, getFloat, getFloat, getFloatAndRemove, getFloatAndRemove, getInt, getInt, getIntAndRemove, getIntAndRemove, getLong, getLong, getLongAndRemove, getLongAndRemove, getShort, getShort, getShortAndRemove, getShortAndRemove, getTimeMillis, getTimeMillis, getTimeMillisAndRemove, getTimeMillisAndRemove, isEmpty, names, remove, set, set, set, set, setAll, setBoolean, setByte, setChar, setDouble, setFloat, setInt, setLong, setObject, setObject, setObject, setShort, setTimeMillis, size
Methods inherited from interface io.netty.handler.codec.http2.Http2Headers
iterator, valueIterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
EmptyHttp2Headers
private EmptyHttp2Headers()
-
-
Method Details
-
method
Description copied from interface:Http2Headers
Sets theHttp2Headers.PseudoHeaderName.METHOD
header- Specified by:
method
in interfaceHttp2Headers
-
scheme
Description copied from interface:Http2Headers
Sets theHttp2Headers.PseudoHeaderName.SCHEME
header- Specified by:
scheme
in interfaceHttp2Headers
-
authority
Description copied from interface:Http2Headers
Sets theHttp2Headers.PseudoHeaderName.AUTHORITY
header- Specified by:
authority
in interfaceHttp2Headers
-
path
Description copied from interface:Http2Headers
Sets theHttp2Headers.PseudoHeaderName.PATH
header- Specified by:
path
in interfaceHttp2Headers
-
status
Description copied from interface:Http2Headers
Sets theHttp2Headers.PseudoHeaderName.STATUS
header- Specified by:
status
in interfaceHttp2Headers
-
method
Description copied from interface:Http2Headers
Gets theHttp2Headers.PseudoHeaderName.METHOD
header ornull
if there is no such header- Specified by:
method
in interfaceHttp2Headers
-
scheme
Description copied from interface:Http2Headers
Gets theHttp2Headers.PseudoHeaderName.SCHEME
header ornull
if there is no such header- Specified by:
scheme
in interfaceHttp2Headers
-
authority
Description copied from interface:Http2Headers
Gets theHttp2Headers.PseudoHeaderName.AUTHORITY
header ornull
if there is no such header- Specified by:
authority
in interfaceHttp2Headers
-
path
Description copied from interface:Http2Headers
Gets theHttp2Headers.PseudoHeaderName.PATH
header ornull
if there is no such header- Specified by:
path
in interfaceHttp2Headers
-
status
Description copied from interface:Http2Headers
Gets theHttp2Headers.PseudoHeaderName.STATUS
header ornull
if there is no such header- Specified by:
status
in interfaceHttp2Headers
-
contains
Description copied from interface:Http2Headers
Returnstrue
if a header with thename
andvalue
exists,false
otherwise.If
caseInsensitive
istrue
then a case insensitive compare is done on the value.- Specified by:
contains
in interfaceHttp2Headers
- Parameters:
name
- the name of the header to findvalue
- the value of the header to findcaseInsensitive
-true
then a case insensitive compare is run to compare values. otherwise a case sensitive compare is run to compare values.
-