Client | Server | |
---|---|---|
Request | prepares headers before a request is sent | interprets headers when a request is received |
Response | interprets headers when a response is received | prepares headers before a response is sent |
Org.Apache.Http.Protocol.HttpRequestExecutor is a processor for the client side, Org.Apache.Http.Protocol.HttpService for the server side. On the client side, a Org.Apache.Http.Protocol.HttpContext is used to tie together a request, the response to it, and other data that might be associated with the request execution. It is passed to the request executor whenever needed.
Information about required and recommended interceptors for the client side will be provided elsewhere. For the time being, please refer to the comments in the example applications or ask on one of the mailing lists.
Note: If you want to develop a server-side application, we recommend that you implement your application as a servlet running in a servlet engine like or full-blown JSEE container like . If you prefer to implement a server-side application based on our Org.Apache.Http.Protocol.HttpService, we'll assume that you know what you're doing and that you don't need help in figuring out which interceptors need to be configured.
Type | Reason |
---|---|
BasicHttpContext | Default implementation of the Org.Apache.Http.Protocol.HttpContext. |
BasicHttpContext+InterfaceConsts | Documentation for this section has not yet been entered. |
BasicHttpProcessor | Keeps lists of interceptors for processing requests and responses. |
DefaultedHttpContext | Org.Apache.Http.Protocol.HttpContext implementation that delegates resolution of an attribute to the given default Org.Apache.Http.Protocol.HttpContext instance if the attribute is not present in the local one. |
DefaultedHttpContext+InterfaceConsts | Documentation for this section has not yet been entered. |
ExecutionContext | Org.Apache.Http.Protocol.HttpContext attribute names for protocol execution. |
ExecutionContextConsts | Documentation for this section has not yet been entered. |
HTTP | Constants and static helpers related to the HTTP protocol. |
HttpContext | A context for executing a request. |
HttpContextConsts | Documentation for this section has not yet been entered. |
HttpDateGenerator | Generates a date in the format required by the HTTP protocol. |
HttpRequestExecutor | Sends HTTP requests and receives the responses. |
HttpRequestHandlerRegistry | Maintains a map of HTTP request handlers keyed by a request URI pattern. |
HttpService | Minimalistic server-side implementation of an HTTP processor. |
IHttpContext | A context for executing a request. |
IHttpExpectationVerifier | Defines an interface to verify whether an incoming HTTP request meets the target server's expectations. |
IHttpProcessor | Performs interceptor processing of requests and responses. |
IHttpRequestHandler | [Android Documentation] |
IHttpRequestHandlerResolver | Interface to be implemented by objects that can resolve Org.Apache.Http.Protocol.IHttpRequestHandler instances by request URI. |
IHttpRequestInterceptorList | Provides access to an ordered list of request interceptors. |
IHttpResponseInterceptorList | Provides access to an ordered list of response interceptors. |
RequestConnControl | A request interceptor that suggests connection keep-alive to the server. |
RequestContent | A request interceptor that decides about the transport encoding. |
RequestDate | A request interceptor that adds a Date header. |
RequestExpectContinue | A request interceptor that enables the expect-continue handshake. |
RequestTargetHost | A request interceptor that sets the Host header for HTTP/1.1 requests. |
RequestUserAgent | A request interceptor that adds a User-Agent header. |
ResponseConnControl | A response interceptor that suggests connection keep-alive to the client. |
ResponseContent | A response interceptor that sets up entity-related headers. |
ResponseDate | A response interceptor that adds a Date header. |
ResponseServer | A response interceptor that adds a Server header. |
SyncBasicHttpContext | Thread-safe extension of the Org.Apache.Http.Protocol.BasicHttpContext. |
UriPatternMatcher | Maintains a map of objects keyed by a request URI pattern. |