| Package | Description |
|---|---|
| org.apache.http |
Core HTTP component APIs and primitives.
|
| org.apache.http.impl |
Default implementations of HTTP connections for synchronous,
blocking communication.
|
| org.apache.http.message |
Core HTTP message components, message element parser
and writer APIs and their default implementations.
|
| org.apache.http.params |
Deprecated.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
HttpVersion |
Represents an HTTP version.
|
| Modifier and Type | Method | Description |
|---|---|---|
ProtocolVersion |
HttpVersion.forVersion(int major,
int minor) |
Obtains a specific HTTP version.
|
ProtocolVersion |
ProtocolVersion.forVersion(int major,
int minor) |
Obtains a specific version of this protocol.
|
ProtocolVersion |
HttpMessage.getProtocolVersion() |
Returns the protocol version this message is compatible with.
|
ProtocolVersion |
RequestLine.getProtocolVersion() |
|
ProtocolVersion |
StatusLine.getProtocolVersion() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
ProtocolVersion.compareToVersion(ProtocolVersion that) |
Compares this protocol version with another one.
|
boolean |
ProtocolVersion.greaterEquals(ProtocolVersion version) |
Tests if this protocol version is greater or equal to the given one.
|
boolean |
ProtocolVersion.isComparable(ProtocolVersion that) |
Checks whether this protocol can be compared to another one.
|
boolean |
ProtocolVersion.lessEquals(ProtocolVersion version) |
Tests if this protocol version is less or equal to the given one.
|
HttpResponse |
HttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context) |
Creates a new response from status line elements.
|
void |
HttpResponse.setStatusLine(ProtocolVersion ver,
int code) |
Sets the status line of this response.
|
void |
HttpResponse.setStatusLine(ProtocolVersion ver,
int code,
java.lang.String reason) |
Sets the status line of this response with a reason phrase.
|
| Modifier and Type | Method | Description |
|---|---|---|
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context) |
| Modifier and Type | Field | Description |
|---|---|---|
protected ProtocolVersion |
BasicLineParser.protocol |
A version of the protocol to parse.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected ProtocolVersion |
BasicLineParser.createProtocolVersion(int major,
int minor) |
Creates a protocol version.
|
ProtocolVersion |
BasicHttpRequest.getProtocolVersion() |
Returns the HTTP protocol version to be used for this request.
|
ProtocolVersion |
BasicHttpResponse.getProtocolVersion() |
|
ProtocolVersion |
BasicRequestLine.getProtocolVersion() |
|
ProtocolVersion |
BasicStatusLine.getProtocolVersion() |
|
static ProtocolVersion |
BasicLineParser.parseProtocolVersion(java.lang.String value,
LineParser parser) |
|
ProtocolVersion |
BasicLineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor) |
|
ProtocolVersion |
LineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor) |
Parses the textual representation of a protocol version.
|
| Modifier and Type | Method | Description |
|---|---|---|
CharArrayBuffer |
BasicLineFormatter.appendProtocolVersion(CharArrayBuffer buffer,
ProtocolVersion version) |
|
CharArrayBuffer |
LineFormatter.appendProtocolVersion(CharArrayBuffer buffer,
ProtocolVersion version) |
Formats a protocol version.
|
protected RequestLine |
BasicLineParser.createRequestLine(java.lang.String method,
java.lang.String uri,
ProtocolVersion ver) |
Instantiates a new request line.
|
protected StatusLine |
BasicLineParser.createStatusLine(ProtocolVersion ver,
int status,
java.lang.String reason) |
Instantiates a new status line.
|
protected int |
BasicLineFormatter.estimateProtocolVersionLen(ProtocolVersion version) |
Guesses the length of a formatted protocol version.
|
static java.lang.String |
BasicLineFormatter.formatProtocolVersion(ProtocolVersion version,
LineFormatter formatter) |
Formats a protocol version.
|
void |
BasicHttpResponse.setStatusLine(ProtocolVersion ver,
int code) |
|
void |
BasicHttpResponse.setStatusLine(ProtocolVersion ver,
int code,
java.lang.String reason) |
| Constructor | Description |
|---|---|
BasicHttpEntityEnclosingRequest(java.lang.String method,
java.lang.String uri,
ProtocolVersion ver) |
|
BasicHttpRequest(java.lang.String method,
java.lang.String uri,
ProtocolVersion ver) |
Creates an instance of this class using the given request method, URI
and the HTTP protocol version.
|
BasicHttpResponse(ProtocolVersion ver,
int code,
java.lang.String reason) |
Creates a response from elements of a status line.
|
BasicLineParser(ProtocolVersion proto) |
Creates a new line parser for the given HTTP-like protocol.
|
BasicRequestLine(java.lang.String method,
java.lang.String uri,
ProtocolVersion version) |
|
BasicStatusLine(ProtocolVersion version,
int statusCode,
java.lang.String reasonPhrase) |
Creates a new status line with the given version, status, and reason.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ProtocolVersion |
HttpProtocolParams.getVersion(HttpParams params) |
Deprecated.
Obtains value of the
CoreProtocolPNames.PROTOCOL_VERSION parameter. |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
HttpProtocolParams.setVersion(HttpParams params,
ProtocolVersion version) |
Deprecated.
Sets value of the
CoreProtocolPNames.PROTOCOL_VERSION parameter. |