@Contract(threading=IMMUTABLE) public class LazyLineParser extends BasicLineParser
BasicLineParser that defers parsing of
header values. Header value is parsed only if accessed with
NameValuePair.getValue().
This parser should be used to parse request messages on the server server.
| Modifier and Type | Field and Description |
|---|---|
static LazyLineParser |
INSTANCE |
| Constructor and Description |
|---|
LazyLineParser() |
| Modifier and Type | Method and Description |
|---|---|
Header |
parseHeader(CharArrayBuffer buffer)
Parses a header from the given buffer containing one line of text.
|
parseRequestLine, parseStatusLinepublic static final LazyLineParser INSTANCE
public Header parseHeader(CharArrayBuffer buffer) throws ParseException
LineParserparseHeader in interface LineParserparseHeader in class BasicLineParserbuffer - a buffer holding the full header line.ParseException - in case of a parse errorCopyright © 2005–2022 The Apache Software Foundation. All rights reserved.