@Contract(threading=STATELESS) public final class ProxyStatusSupport extends Object
Proxy-Status response field defined by RFC 9209. The field is a
Structured Fields (RFC 8941) List whose members are Items: an intermediary identity followed
by parameters.
Parsing is strict. Input that does not conform to the grammar is rejected with a
ParseException, since RFC 8941 requires a field that fails to parse to be treated as
absent rather than partially applied. The parser only decodes the field; it does not interpret
or act on the reported values. Parameter values are returned by their structured-field types:
String for tokens and strings, Long for integers, BigDecimal for
decimals, Boolean for booleans and byte[] for byte sequences.
| Modifier and Type | Method and Description |
|---|---|
static List<ProxyStatus> |
parse(CharSequence value)
Parses a
Proxy-Status field value into its ordered list of members. |
static List<ProxyStatus> |
parse(CharSequence value,
ParserCursor cursor)
Parses a
Proxy-Status field value into its ordered list of members, starting at the
current position of the given cursor. |
public static List<ProxyStatus> parse(CharSequence value) throws ParseException
Proxy-Status field value into its ordered list of members.value - the field value; must not be null.ParseException - if the value does not conform to RFC 9209 / RFC 8941.public static List<ProxyStatus> parse(CharSequence value, ParserCursor cursor) throws ParseException
Proxy-Status field value into its ordered list of members, starting at the
current position of the given cursor. This allows the field to be parsed directly from a
FormattedHeader buffer without creating an intermediate
String.value - the buffer holding the field value; must not be null.cursor - the cursor positioned at the start of the field value; must not be null.ParseException - if the value does not conform to RFC 9209 / RFC 8941.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.