@ThreadSafe public final class ImmutableHttpProcessor extends java.lang.Object implements HttpProcessor
HttpProcessor.| 构造器和说明 |
|---|
ImmutableHttpProcessor(HttpRequestInterceptor... requestInterceptors) |
ImmutableHttpProcessor(HttpRequestInterceptor[] requestInterceptors,
HttpResponseInterceptor[] responseInterceptors) |
ImmutableHttpProcessor(HttpRequestInterceptorList requestInterceptors,
HttpResponseInterceptorList responseInterceptors)
已过时。
(4.3) do not use.
|
ImmutableHttpProcessor(HttpResponseInterceptor... responseInterceptors) |
ImmutableHttpProcessor(java.util.List<HttpRequestInterceptor> requestInterceptors,
java.util.List<HttpResponseInterceptor> responseInterceptors) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
process(HttpRequest request,
HttpContext context)
Processes a request.
|
void |
process(HttpResponse response,
HttpContext context)
Processes a response.
|
public ImmutableHttpProcessor(HttpRequestInterceptor[] requestInterceptors, HttpResponseInterceptor[] responseInterceptors)
public ImmutableHttpProcessor(java.util.List<HttpRequestInterceptor> requestInterceptors, java.util.List<HttpResponseInterceptor> responseInterceptors)
@Deprecated public ImmutableHttpProcessor(HttpRequestInterceptorList requestInterceptors, HttpResponseInterceptorList responseInterceptors)
public ImmutableHttpProcessor(HttpRequestInterceptor... requestInterceptors)
public ImmutableHttpProcessor(HttpResponseInterceptor... responseInterceptors)
public void process(HttpRequest request, HttpContext context) throws java.io.IOException, HttpException
HttpRequestInterceptorprocess 在接口中 HttpRequestInterceptorrequest - the request to preprocesscontext - the context for the requestjava.io.IOException - in case of an I/O errorHttpException - in case of an HTTP protocol violationpublic void process(HttpResponse response, HttpContext context) throws java.io.IOException, HttpException
HttpResponseInterceptorprocess 在接口中 HttpResponseInterceptorresponse - the response to postprocesscontext - the context for the requestjava.io.IOException - in case of an I/O errorHttpException - in case of an HTTP protocol violation