public class LazyLaxLineParser extends BasicLineParser
BasicLineParser
that defers parsing of
header values. Header value is parsed only if accessed with
NameValuePair.getValue()
.
This parser unlike BasicLineParser
and LazyLineParser
will not reject headers containing whitespaces between the header field
name and colon.
This parser should be used to parse response messages on the client server or to parse both request and response messages by an intermediary (proxy).
Modifier and Type | Field and Description |
---|---|
static LazyLaxLineParser |
INSTANCE |
Constructor and Description |
---|
LazyLaxLineParser() |
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 LazyLaxLineParser 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.