public interface HeaderValueParser
Modifier and Type | Method and Description |
---|---|
HeaderElement[] |
parseElements(CharSequence buffer,
ParserCursor cursor)
Parses a header value into elements.
|
HeaderElement |
parseHeaderElement(CharSequence buffer,
ParserCursor cursor)
Parses a single header element.
|
NameValuePair |
parseNameValuePair(CharSequence buffer,
ParserCursor cursor)
Parses a name=value specification, where the = and value are optional.
|
NameValuePair[] |
parseParameters(CharSequence buffer,
ParserCursor cursor)
Parses a list of name-value pairs.
|
HeaderElement[] parseElements(CharSequence buffer, ParserCursor cursor)
RuntimeException
.buffer
- buffer holding the header value to parsecursor
- the parser cursor containing the current position and
the bounds within the buffer for the parsing operationHeaderElement parseHeaderElement(CharSequence buffer, ParserCursor cursor)
buffer
- buffer holding the element to parsecursor
- the parser cursor containing the current position and
the bounds within the buffer for the parsing operationNameValuePair[] parseParameters(CharSequence buffer, ParserCursor cursor)
ParseException
.buffer
- buffer holding the name-value list to parsecursor
- the parser cursor containing the current position and
the bounds within the buffer for the parsing operationNameValuePair parseNameValuePair(CharSequence buffer, ParserCursor cursor)
buffer
- the buffer holding the name-value pair to parsecursor
- the parser cursor containing the current position and
the bounds within the buffer for the parsing operationnull
if no value is specifiedCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.