public static class FromServer.Header.SingleLong extends FromServer.Header<java.lang.Long>
Type representing headers that have values which are parseable as longs.
For example: Content-Length: 348
FromServer.Header.CombinedMap, FromServer.Header.CsvList, FromServer.Header.HttpCookies, FromServer.Header.HttpDate, FromServer.Header.MapPairs, FromServer.Header.SingleLong, FromServer.Header.ValueOnly
Constructor and Description |
---|
SingleLong(java.lang.String key,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getParsedType()
Always returns
Long |
java.lang.Long |
parse()
Performs the parse of the
value |
cleanQuotes, equals, find, full, getKey, getParsed, getValue, hashCode, key, keyValue, setValue, toString, value
public java.lang.Long parse()
FromServer.Header
Performs the parse of the value
parse
in class FromServer.Header<java.lang.Long>
public java.lang.Class<?> getParsedType()
Always returns Long
getParsedType
in class FromServer.Header<java.lang.Long>