@UnstableApi public final class EmptyHttp2Headers extends EmptyHeaders<java.lang.CharSequence,java.lang.CharSequence,Http2Headers> implements Http2Headers
Http2Headers.PseudoHeaderName
限定符和类型 | 字段和说明 |
---|---|
static EmptyHttp2Headers |
INSTANCE |
限定符和类型 | 方法和说明 |
---|---|
java.lang.CharSequence |
authority()
Gets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
EmptyHttp2Headers |
authority(java.lang.CharSequence authority)
Sets the
Http2Headers.PseudoHeaderName.AUTHORITY header |
boolean |
contains(java.lang.CharSequence name,
java.lang.CharSequence value,
boolean caseInsensitive)
Returns
true if a header with the name and value exists, false otherwise. |
java.lang.CharSequence |
method()
Gets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
EmptyHttp2Headers |
method(java.lang.CharSequence method)
Sets the
Http2Headers.PseudoHeaderName.METHOD header |
java.lang.CharSequence |
path()
Gets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
EmptyHttp2Headers |
path(java.lang.CharSequence path)
Sets the
Http2Headers.PseudoHeaderName.PATH header |
java.lang.CharSequence |
scheme()
Gets the
Http2Headers.PseudoHeaderName.SCHEME header or null if there is no such header |
EmptyHttp2Headers |
scheme(java.lang.CharSequence status)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header |
java.lang.CharSequence |
status()
Gets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
EmptyHttp2Headers |
status(java.lang.CharSequence status)
Sets the
Http2Headers.PseudoHeaderName.STATUS header |
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
iterator, valueIterator
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
public static final EmptyHttp2Headers INSTANCE
public EmptyHttp2Headers method(java.lang.CharSequence method)
Http2Headers
Http2Headers.PseudoHeaderName.METHOD
headermethod
在接口中 Http2Headers
public EmptyHttp2Headers scheme(java.lang.CharSequence status)
Http2Headers
Http2Headers.PseudoHeaderName.SCHEME
headerscheme
在接口中 Http2Headers
public EmptyHttp2Headers authority(java.lang.CharSequence authority)
Http2Headers
Http2Headers.PseudoHeaderName.AUTHORITY
headerauthority
在接口中 Http2Headers
public EmptyHttp2Headers path(java.lang.CharSequence path)
Http2Headers
Http2Headers.PseudoHeaderName.PATH
headerpath
在接口中 Http2Headers
public EmptyHttp2Headers status(java.lang.CharSequence status)
Http2Headers
Http2Headers.PseudoHeaderName.STATUS
headerstatus
在接口中 Http2Headers
public java.lang.CharSequence method()
Http2Headers
Http2Headers.PseudoHeaderName.METHOD
header or null
if there is no such headermethod
在接口中 Http2Headers
public java.lang.CharSequence scheme()
Http2Headers
Http2Headers.PseudoHeaderName.SCHEME
header or null
if there is no such headerscheme
在接口中 Http2Headers
public java.lang.CharSequence authority()
Http2Headers
Http2Headers.PseudoHeaderName.AUTHORITY
header or null
if there is no such headerauthority
在接口中 Http2Headers
public java.lang.CharSequence path()
Http2Headers
Http2Headers.PseudoHeaderName.PATH
header or null
if there is no such headerpath
在接口中 Http2Headers
public java.lang.CharSequence status()
Http2Headers
Http2Headers.PseudoHeaderName.STATUS
header or null
if there is no such headerstatus
在接口中 Http2Headers
public boolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
Http2Headers
true
if a header with the name
and value
exists, false
otherwise.
If caseInsensitive
is true
then a case insensitive compare is done on the value.
contains
在接口中 Http2Headers
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.