Java HTTP Proxy Library Project Page
SourceForge.net Logo

com.wpg.proxy
Interface HttpMessageHandler


public interface HttpMessageHandler

Interface for a user defined HTTP Message Handler


Method Summary
 void failed(java.lang.Exception exception)
          Failed to get a request
 void failedRequest(HttpMessageRequest request, java.lang.Exception exception)
          Failed to get a response for the given request
 void failedResponse(HttpMessageResponse response, HttpMessageRequest request, java.lang.Exception exception)
          Failed to send the given response for the given request back to the user
 void receivedRequest(HttpMessageRequest request)
          Just received a request, this is called before the request is sent out but after the request processors are executed
 void receivedResponse(HttpMessageResponse response, HttpMessageRequest request)
          Just received a response for the given request, but have not yet returned it to the user
 

Method Detail

failed

void failed(java.lang.Exception exception)
Failed to get a request


failedRequest

void failedRequest(HttpMessageRequest request,
                   java.lang.Exception exception)
Failed to get a response for the given request


failedResponse

void failedResponse(HttpMessageResponse response,
                    HttpMessageRequest request,
                    java.lang.Exception exception)
Failed to send the given response for the given request back to the user


receivedRequest

void receivedRequest(HttpMessageRequest request)
Just received a request, this is called before the request is sent out but after the request processors are executed


receivedResponse

void receivedResponse(HttpMessageResponse response,
                      HttpMessageRequest request)
Just received a response for the given request, but have not yet returned it to the user


Java HTTP Proxy Library Project Page
SourceForge.net Logo