| Package | Description |
|---|---|
| org.apache.http.impl.bootstrap |
Embedded server and server bootstrap.
|
| org.apache.http.protocol |
Core HTTP protocol execution framework and HTTP protocol handlers
for synchronous, blocking communication.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServerBootstrap |
ServerBootstrap.addInterceptorFirst(HttpResponseInterceptor itcp) |
Adds this protocol interceptor to the head of the protocol processing list.
|
ServerBootstrap |
ServerBootstrap.addInterceptorLast(HttpResponseInterceptor itcp) |
Adds this protocol interceptor to the tail of the protocol processing list.
|
| Modifier and Type | Interface | Description |
|---|---|---|
interface |
HttpProcessor |
HTTP protocol processor is a collection of protocol interceptors that
implements the 'Chain of Responsibility' pattern, where each individual
protocol interceptor is expected to work on a particular aspect of the HTTP
protocol the interceptor is responsible for.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
BasicHttpProcessor |
Deprecated.
(4.3)
|
class |
ImmutableHttpProcessor |
Immutable
HttpProcessor. |
class |
ResponseConnControl |
ResponseConnControl is responsible for adding
Connection header
to the outgoing responses, which is essential for managing persistence of
HTTP/1.0 connections. |
class |
ResponseContent |
ResponseContent is the most important interceptor for outgoing responses.
|
class |
ResponseDate |
ResponseDate is responsible for adding
Date header to the
outgoing responses. |
class |
ResponseServer |
ResponseServer is responsible for adding
Server header. |
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<HttpResponseInterceptor> |
BasicHttpProcessor.responseInterceptors |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
HttpResponseInterceptor |
BasicHttpProcessor.getResponseInterceptor(int index) |
Deprecated.
|
HttpResponseInterceptor |
HttpResponseInterceptorList.getResponseInterceptor(int index) |
Deprecated.
Obtains a response interceptor from this list.
|
| Modifier and Type | Method | Description |
|---|---|---|
HttpProcessorBuilder |
HttpProcessorBuilder.add(HttpResponseInterceptor e) |
|
HttpProcessorBuilder |
HttpProcessorBuilder.addAll(HttpResponseInterceptor... e) |
|
HttpProcessorBuilder |
HttpProcessorBuilder.addAllFirst(HttpResponseInterceptor... e) |
|
HttpProcessorBuilder |
HttpProcessorBuilder.addAllLast(HttpResponseInterceptor... e) |
|
HttpProcessorBuilder |
HttpProcessorBuilder.addFirst(HttpResponseInterceptor e) |
|
void |
BasicHttpProcessor.addInterceptor(HttpResponseInterceptor interceptor) |
Deprecated.
|
void |
BasicHttpProcessor.addInterceptor(HttpResponseInterceptor interceptor,
int index) |
Deprecated.
|
HttpProcessorBuilder |
HttpProcessorBuilder.addLast(HttpResponseInterceptor e) |
|
void |
BasicHttpProcessor.addResponseInterceptor(HttpResponseInterceptor itcp) |
Deprecated.
|
void |
BasicHttpProcessor.addResponseInterceptor(HttpResponseInterceptor itcp,
int index) |
Deprecated.
|
void |
HttpResponseInterceptorList.addResponseInterceptor(HttpResponseInterceptor interceptor) |
Deprecated.
Appends a response interceptor to this list.
|
void |
HttpResponseInterceptorList.addResponseInterceptor(HttpResponseInterceptor interceptor,
int index) |
Deprecated.
Inserts a response interceptor at the specified index.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
BasicHttpProcessor.removeResponseInterceptorByClass(java.lang.Class<? extends HttpResponseInterceptor> clazz) |
Deprecated.
|
void |
HttpResponseInterceptorList.removeResponseInterceptorByClass(java.lang.Class<? extends HttpResponseInterceptor> clazz) |
Deprecated.
Removes all response interceptor of the specified class
|
| Constructor | Description |
|---|---|
ImmutableHttpProcessor(HttpRequestInterceptor[] requestInterceptors,
HttpResponseInterceptor[] responseInterceptors) |
|
ImmutableHttpProcessor(HttpResponseInterceptor... responseInterceptors) |