@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, parseStatusLine
public static final LazyLineParser INSTANCE
public Header parseHeader(CharArrayBuffer buffer) throws ParseException
LineParser
parseHeader
in interface LineParser
parseHeader
in class BasicLineParser
buffer
- a buffer holding the full header line.ParseException
- in case of a parse errorCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.