| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if there is a protocol version at the
argument index (possibly ignoring whitespace),
false otherwisea buffer holding the line to inspect buffer, ParserCursor the cursor at which to check for a protocol version, or
negative for "end of line". Whether the check tolerates
whitespace before or after the protocol version is
implementation dependent. cursor)Checks whether there likely is a protocol version in a line. |
| public Header | Returns: the header in the argument buffer. The returned object MAY be a wrapper for the argument buffer. The argument buffer MUST NOT be re-used or changed afterwards.a buffer holding the full header line.
This buffer MUST NOT be re-used afterwards, since
the returned object may reference the contents later. buffer)Creates a header from a line. |
| public ProtocolVersion | Returns: the parsed protocol versiona buffer holding the protocol version to parse buffer, ParserCursor the parser cursor containing the current position and
the bounds within the buffer for the parsing operation cursor)Parses the textual representation of a protocol version. |
| public RequestLine | Returns: the parsed request linea buffer holding the line to parse buffer, ParserCursor the parser cursor containing the current position and
the bounds within the buffer for the parsing operation cursor)Parses a request line. |
| public StatusLine | Returns: the parsed status linea buffer holding the line to parse buffer, ParserCursor the parser cursor containing the current position and
the bounds within the buffer for the parsing operation cursor)Parses a status line. |
| hasProtocolVersion | back to summary |
|---|---|
| public boolean hasProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor) Checks whether there likely is a protocol version in a line.
This method implements a heuristic to check for a
likely protocol version specification. It does not
guarantee that
| |
| parseHeader | back to summary |
|---|---|
| public Header parseHeader(CharArrayBuffer buffer) throws ParseException Creates a header from a line. The full header line is expected here. Header continuation lines must be joined by the caller before invoking this method.
| |
| parseProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion parseProtocolVersion(CharArrayBuffer buffer, ParserCursor cursor) throws ParseException Parses the textual representation of a protocol version. This is needed for parsing request lines (last element) as well as status lines (first element).
| |
| parseRequestLine | back to summary |
|---|---|
| public RequestLine parseRequestLine(CharArrayBuffer buffer, ParserCursor cursor) throws ParseException Parses a request line.
| |
| parseStatusLine | back to summary |
|---|---|
| public StatusLine parseStatusLine(CharArrayBuffer buffer, ParserCursor cursor) throws ParseException Parses a status line.
| |