@UnstableApi public interface Http2Headers extends Headers<java.lang.CharSequence,java.lang.CharSequence,Http2Headers>
限定符和类型 | 接口和说明 |
---|---|
static class |
Http2Headers.PseudoHeaderName
HTTP/2 pseudo-headers names.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.CharSequence |
authority()
Gets the
Http2Headers.PseudoHeaderName.AUTHORITY header or null if there is no such header |
Http2Headers |
authority(java.lang.CharSequence value)
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.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>> |
iterator()
Returns an iterator over all HTTP/2 headers.
|
java.lang.CharSequence |
method()
Gets the
Http2Headers.PseudoHeaderName.METHOD header or null if there is no such header |
Http2Headers |
method(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.METHOD header |
java.lang.CharSequence |
path()
Gets the
Http2Headers.PseudoHeaderName.PATH header or null if there is no such header |
Http2Headers |
path(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.PATH header |
java.lang.CharSequence |
scheme()
Gets the
Http2Headers.PseudoHeaderName.SCHEME header or null if there is no such header |
Http2Headers |
scheme(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.SCHEME header |
java.lang.CharSequence |
status()
Gets the
Http2Headers.PseudoHeaderName.STATUS header or null if there is no such header |
Http2Headers |
status(java.lang.CharSequence value)
Sets the
Http2Headers.PseudoHeaderName.STATUS header |
java.util.Iterator<java.lang.CharSequence> |
valueIterator(java.lang.CharSequence name)
Equivalent to
Headers.getAll(Object) but no intermediate list is generated. |
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
java.util.Iterator<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>> iterator()
iterator
在接口中 Headers<java.lang.CharSequence,java.lang.CharSequence,Http2Headers>
iterator
在接口中 java.lang.Iterable<java.util.Map.Entry<java.lang.CharSequence,java.lang.CharSequence>>
java.util.Iterator<java.lang.CharSequence> valueIterator(java.lang.CharSequence name)
Headers.getAll(Object)
but no intermediate list is generated.name
- the name of the header to retrieveIterator
of header values corresponding to name
.Http2Headers method(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.METHOD
headerHttp2Headers scheme(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.SCHEME
headerHttp2Headers authority(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.AUTHORITY
headerHttp2Headers path(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.PATH
headerHttp2Headers status(java.lang.CharSequence value)
Http2Headers.PseudoHeaderName.STATUS
headerjava.lang.CharSequence method()
Http2Headers.PseudoHeaderName.METHOD
header or null
if there is no such headerjava.lang.CharSequence scheme()
Http2Headers.PseudoHeaderName.SCHEME
header or null
if there is no such headerjava.lang.CharSequence authority()
Http2Headers.PseudoHeaderName.AUTHORITY
header or null
if there is no such headerjava.lang.CharSequence path()
Http2Headers.PseudoHeaderName.PATH
header or null
if there is no such headerjava.lang.CharSequence status()
Http2Headers.PseudoHeaderName.STATUS
header or null
if there is no such headerboolean contains(java.lang.CharSequence name, java.lang.CharSequence value, boolean caseInsensitive)
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.
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.