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 and Description |
---|---|
class |
HttpVersion
Represents an HTTP version.
|
Modifier and Type | Method and 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 |
RequestLine.getProtocolVersion() |
ProtocolVersion |
HttpMessage.getProtocolVersion()
Returns the protocol version this message is compatible with.
|
ProtocolVersion |
StatusLine.getProtocolVersion() |
Modifier and Type | Method and 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,
String reason)
Sets the status line of this response with a reason phrase.
|
Modifier and Type | Method and Description |
---|---|
HttpResponse |
DefaultHttpResponseFactory.newHttpResponse(ProtocolVersion ver,
int status,
HttpContext context) |
Modifier and Type | Field and Description |
---|---|
protected ProtocolVersion |
BasicLineParser.protocol
A version of the protocol to parse.
|
Modifier and Type | Method and 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 |
BasicStatusLine.getProtocolVersion() |
ProtocolVersion |
BasicRequestLine.getProtocolVersion() |
ProtocolVersion |
LineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor)
Parses the textual representation of a protocol version.
|
ProtocolVersion |
BasicLineParser.parseProtocolVersion(CharArrayBuffer buffer,
ParserCursor cursor) |
static ProtocolVersion |
BasicLineParser.parseProtocolVersion(String value,
LineParser parser) |
Modifier and Type | Method and Description |
---|---|
CharArrayBuffer |
LineFormatter.appendProtocolVersion(CharArrayBuffer buffer,
ProtocolVersion version)
Formats a protocol version.
|
CharArrayBuffer |
BasicLineFormatter.appendProtocolVersion(CharArrayBuffer buffer,
ProtocolVersion version) |
protected RequestLine |
BasicLineParser.createRequestLine(String method,
String uri,
ProtocolVersion ver)
Instantiates a new request line.
|
protected StatusLine |
BasicLineParser.createStatusLine(ProtocolVersion ver,
int status,
String reason)
Instantiates a new status line.
|
protected int |
BasicLineFormatter.estimateProtocolVersionLen(ProtocolVersion version)
Guesses the length of a formatted protocol version.
|
static 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,
String reason) |
Constructor and Description |
---|
BasicHttpEntityEnclosingRequest(String method,
String uri,
ProtocolVersion ver) |
BasicHttpRequest(String method,
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,
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(String method,
String uri,
ProtocolVersion version) |
BasicStatusLine(ProtocolVersion version,
int statusCode,
String reasonPhrase)
Creates a new status line with the given version, status, and reason.
|
Modifier and Type | Method and Description |
---|---|
static ProtocolVersion |
HttpProtocolParams.getVersion(HttpParams params)
Deprecated.
Obtains value of the
CoreProtocolPNames.PROTOCOL_VERSION parameter. |
Modifier and Type | Method and Description |
---|---|
static void |
HttpProtocolParams.setVersion(HttpParams params,
ProtocolVersion version)
Deprecated.
Sets value of the
CoreProtocolPNames.PROTOCOL_VERSION parameter. |
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.