public static class FromServer.Header.ValueOnly extends FromServer.Header<java.lang.String>
Type representing headers that are simple key/values, with no parseable structure in the value. For example: Accept-Ranges: bytes
.
FromServer.Header.CombinedMap, FromServer.Header.CsvList, FromServer.Header.HttpCookies, FromServer.Header.HttpDate, FromServer.Header.MapPairs, FromServer.Header.SingleLong, FromServer.Header.ValueOnly
Constructor and Description |
---|
ValueOnly(java.lang.String key,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getParsedType()
Always returns
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.lang.String parse()
FromServer.Header
Performs the parse of the value
parse
in class FromServer.Header<java.lang.String>
public java.lang.Class<?> getParsedType()
Always returns String
getParsedType
in class FromServer.Header<java.lang.String>