public static class FromServer.Header.MapPairs extends FromServer.Header<java.util.Map<java.lang.String,java.lang.String>>
Type representing headers that have values which are parseable as key/value pairs.
For example: Alt-Svc: h2="http2.example.com:443"; ma=7200
FromServer.Header.CombinedMap, FromServer.Header.CsvList, FromServer.Header.HttpCookies, FromServer.Header.HttpDate, FromServer.Header.MapPairs, FromServer.Header.SingleLong, FromServer.Header.ValueOnly
Constructor and Description |
---|
MapPairs(java.lang.String key,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getParsedType()
Always returns
Map |
java.util.Map<java.lang.String,java.lang.String> |
parse()
Performs the parse of the
value |
cleanQuotes, equals, find, full, getKey, getParsed, getValue, hashCode, key, keyValue, setValue, toString, value
public java.util.Map<java.lang.String,java.lang.String> parse()
FromServer.Header
Performs the parse of the value
parse
in class FromServer.Header<java.util.Map<java.lang.String,java.lang.String>>
public java.lang.Class<?> getParsedType()
Always returns Map
getParsedType
in class FromServer.Header<java.util.Map<java.lang.String,java.lang.String>>