org.apache.hc.core5.http.message.LineParser implementation.
| Modifier and Type | Field and Description |
|---|---|
| private static final BitSet | |
| private static final BitSet | |
| private static final BitSet | |
| public static final BasicLineParser | |
| private final ProtocolVersion | protocol
A version of the protocol to parse. |
| private final Tokenizer |
| Access | Constructor and Description |
|---|---|
| public | BasicLineParser(final ProtocolVersion
a version of the protocol to parse, or
proto)null for HTTP. The actual version
is not relevant, only the protocol name.Creates a new line parser for the given HTTP-like protocol. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Header | parseHeader(final CharArrayBuffer
a buffer holding the full header line. buffer)Implements org. |
| pack-priv ProtocolVersion | |
| public RequestLine | Returns: the parsed request linea buffer holding the line to parse buffer)Implements org. |
| public StatusLine | parseStatusLine(final CharArrayBuffer
a buffer holding a line to parse buffer)Implements org. |
| BLANKS | back to summary |
|---|---|
| private static final BitSet BLANKS | |
| COLON | back to summary |
|---|---|
| private static final BitSet COLON | |
| FULL_STOP | back to summary |
|---|---|
| private static final BitSet FULL_STOP | |
| INSTANCE | back to summary |
|---|---|
| public static final BasicLineParser INSTANCE | |
| protocol | back to summary |
|---|---|
| private final ProtocolVersion protocol A version of the protocol to parse. The version is typically not relevant, but the protocol name. | |
| tokenizer | back to summary |
|---|---|
| private final Tokenizer tokenizer | |
| BasicLineParser | back to summary |
|---|---|
| public BasicLineParser(final ProtocolVersion proto) Creates a new line parser for the given HTTP-like protocol.
| |
| BasicLineParser | back to summary |
|---|---|
| public BasicLineParser() Creates a new line parser for HTTP. | |
| parseHeader | back to summary |
|---|---|
| public Header parseHeader(final CharArrayBuffer buffer) throws ParseException Implements org. Doc from org. Parses a header from the given buffer containing one line of text. The full header line is expected here. Header continuation lines must be joined by the caller before invoking this method.
| |
| parseProtocolVersion | back to summary |
|---|---|
| pack-priv ProtocolVersion parseProtocolVersion(final CharArrayBuffer buffer, final ParserCursor cursor) throws ParseException | |
| parseRequestLine | back to summary |
|---|---|
| public RequestLine parseRequestLine(final CharArrayBuffer buffer) throws ParseException Implements org. Parses a request line.
| |
| parseStatusLine | back to summary |
|---|---|
| public StatusLine parseStatusLine(final CharArrayBuffer buffer) throws ParseException Implements org. Doc from org. Parses a status line from the given buffer containing one line of text.
| |