Methods Summary |
---|
public boolean | hasProtocolVersion(org.apache.http.util.CharArrayBuffer buffer, org.apache.http.message.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 {@link #parseProtocolVersion} would not
detect a parse error.
This can be used to detect garbage lines before a request
or status line.
|
public org.apache.http.Header | parseHeader(org.apache.http.util.CharArrayBuffer buffer)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.
|
public org.apache.http.ProtocolVersion | parseProtocolVersion(org.apache.http.util.CharArrayBuffer buffer, org.apache.http.message.ParserCursor cursor)Parses the textual representation of a protocol version.
This is needed for parsing request lines (last element)
as well as status lines (first element).
|
public org.apache.http.RequestLine | parseRequestLine(org.apache.http.util.CharArrayBuffer buffer, org.apache.http.message.ParserCursor cursor)Parses a request line.
|
public org.apache.http.StatusLine | parseStatusLine(org.apache.http.util.CharArrayBuffer buffer, org.apache.http.message.ParserCursor cursor)Parses a status line.
|