Top Description Interfaces Classes
[default module]

Package org.apache.http


Core HTTP component APIs and primitives.

These deal with the fundamental things required for using the HTTP protocol, such as representing a message including it's headers and optional entity, and connections over which messages are sent. In order to prepare messages before sending or after receiving, there are interceptors for requests and responses.

Interface Summary

Modifier and TypeInterface and Description
public interface
ConnectionReuseStrategy

Interface for deciding whether a connection can be re-used for subsequent requests and should be kept alive.

public interface
public interface
FormattedHeader

An HTTP header which is already formatted.

public interface
Header

Represents an HTTP header field.

public interface
HeaderElement

One element of an HTTP header value consisting of a name / value pair and a number of optional name / value parameters.

public interface
HeaderElementIterator

A type-safe iterator for HeaderElement objects.

public interface
HeaderIterator

A type-safe iterator for Header objects.

public interface
HttpClientConnection

A client-side HTTP connection, which can be used for sending requests and receiving responses.

public interface
HttpConnection

A generic HTTP connection, useful on client and server side.

public interface
HttpConnectionFactory<T extends HttpConnection>

Factory for HttpConnection instances.

public interface
HttpConnectionMetrics

The point of access to the statistics of an HttpConnection.

public interface
HttpEntity

An entity that can be sent or received with an HTTP message.

public interface
HttpEntityEnclosingRequest

A request with an entity.

public interface
HttpInetConnection

An HTTP connection over the Internet Protocol (IP).

public interface
HttpMessage

HTTP messages consist of requests from client to server and responses from server to client.

public interface
HttpRequest

A request message from a client to a server includes, within the first line of that message, the method to be applied to the resource, the identifier of the resource, and the protocol version in use.

public interface
HttpRequestFactory

A factory for HttpRequest objects.

public interface
HttpRequestInterceptor

HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.

public interface
HttpResponse

After receiving and interpreting a request message, a server responds with an HTTP response message.

public interface
HttpResponseFactory

A factory for HttpResponse objects.

public interface
HttpResponseInterceptor

HTTP protocol interceptor is a routine that implements a specific aspect of the HTTP protocol.

public interface
HttpServerConnection

A server-side HTTP connection, which can be used for receiving requests and sending responses.

public interface
HttpStatus

Constants enumerating the HTTP status codes.

public interface
NameValuePair

A name-value pair parameter used as an element of HTTP messages.

public interface
ReasonPhraseCatalog

Interface for obtaining reason phrases for HTTP status codes.

public interface
RequestLine

The Request-Line begins with a method token, followed by the Request-URI and the protocol version, and ending with CRLF.

public interface
StatusLine

The first line of a Response message is the Status-Line, consisting of the protocol version followed by a numeric status code and its associated textual phrase, with each element separated by SP characters.

public interface
TokenIterator

An iterator for String tokens.

Class Summary

Modifier and TypeClass and Description
public class
ConnectionClosedException

Signals that the connection has been closed unexpectedly.

public class
Consts

Commons constants.

public class
ContentTooLongException

Signals that HTTP entity content is too long.

public class
HttpException

Signals that an HTTP exception has occurred.

public class
HttpHeaders

Constants enumerating the HTTP headers.

public class
HttpHost

Holds all of the variables needed to describe an HTTP connection to a host.

public class
HttpVersion

Represents an HTTP version.

public class
MalformedChunkCodingException

Signals a malformed chunked stream.

public class
MessageConstraintException

Signals a message constraint violation.

public class
MethodNotSupportedException

Signals that an HTTP method is not supported.

public class
NoHttpResponseException

Signals that the target server failed to respond with a valid HTTP response.

public class
ParseException

Signals a parse error.

public class
ProtocolException

Signals that an HTTP protocol violation has occurred.

public class
ProtocolVersion

Represents a protocol version.

public class
TruncatedChunkException

Signals a truncated chunk in a chunked stream.

public class
UnsupportedHttpVersionException

Signals an unsupported version of the HTTP protocol.