org.apache.http.protocol
Class AbstractHttpProcessor

java.lang.Object
  extended by org.apache.http.protocol.AbstractHttpProcessor
Direct Known Subclasses:
HttpRequestExecutor, HttpService

public abstract class AbstractHttpProcessor
extends java.lang.Object

Keeps lists of interceptors for processing requests and responses.

Since:
4.0
Version:
$Revision: 378645 $
Author:
Oleg Kalnichevski

Constructor Summary
AbstractHttpProcessor()
           
 
Method Summary
 void addInterceptor(HttpRequestInterceptor interceptor)
           
 void addInterceptor(HttpResponseInterceptor interceptor)
           
 void clearInterceptors()
           
protected  void postprocessResponse(HttpResponse response, HttpContext context)
           
protected  void preprocessRequest(HttpRequest request, HttpContext context)
           
 void removeInterceptor(HttpRequestInterceptor interceptor)
           
 void removeInterceptor(HttpResponseInterceptor interceptor)
           
 void removeInterceptors(java.lang.Class clazz)
           
 void setInterceptors(java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHttpProcessor

public AbstractHttpProcessor()
Method Detail

addInterceptor

public void addInterceptor(HttpRequestInterceptor interceptor)

removeInterceptor

public void removeInterceptor(HttpRequestInterceptor interceptor)

addInterceptor

public void addInterceptor(HttpResponseInterceptor interceptor)

removeInterceptor

public void removeInterceptor(HttpResponseInterceptor interceptor)

removeInterceptors

public void removeInterceptors(java.lang.Class clazz)

setInterceptors

public void setInterceptors(java.util.List list)

clearInterceptors

public void clearInterceptors()

preprocessRequest

protected void preprocessRequest(HttpRequest request,
                                 HttpContext context)
                          throws java.io.IOException,
                                 HttpException
Throws:
java.io.IOException
HttpException

postprocessResponse

protected void postprocessResponse(HttpResponse response,
                                   HttpContext context)
                            throws java.io.IOException,
                                   HttpException
Throws:
java.io.IOException
HttpException


Copyright 2005-2005-2006 Apache Software Foundation. All Rights Reserved.