Build 1.0_r1(from source)

org.apache.http
Interface HttpRequestInterceptor

All Known Subinterfaces:
HttpProcessor
All Known Implementing Classes:
BasicHttpProcessor, RequestAddCookies, RequestConnControl, RequestContent, RequestDate, RequestDefaultHeaders, RequestExpectContinue, RequestProxyAuthentication, RequestTargetAuthentication, RequestTargetHost, RequestUserAgent

public interface HttpRequestInterceptor

Processes a request. Provides the ability to process a request before it is sent to the server or after it has received on the server side.

Since:
4.0

Method Summary
 void process(HttpRequest request, HttpContext context)
          Processes a request.
 

Method Detail

process

void process(HttpRequest request,
             HttpContext context)
             throws HttpException,
                    IOException
Processes a request. On the client side, this step is performed before the request is sent to the server. On the server side, this step is performed on incoming messages before the message body is evaluated.

Parameters:
request - the request to preprocess
context - the context for the request
Throws:
IOException - in case of an IO problem
HttpException - in case of a protocol or other problem

Build 1.0_r1(from source)

Please submit a feedback, bug or feature