From 5a90e4a07c7f02ef9bc5262455836fdfac09cd8f Mon Sep 17 00:00:00 2001 From: Roland Weber Date: Thu, 19 Jul 2007 17:55:05 +0000 Subject: [PATCH] HTTPCLIENT-672: re-sync with core snapshot git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@557708 13f79535-47bb-0310-9956-ffa450edef68 --- RELEASE_NOTES.txt | 6 ++++ module-client/pom.xml | 2 +- .../http/impl/client/AbstractHttpClient.java | 28 ++++++++++++++++--- 3 files changed, 31 insertions(+), 5 deletions(-) diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt index eb7bb7e46..e7e92a52a 100644 --- a/RELEASE_NOTES.txt +++ b/RELEASE_NOTES.txt @@ -1,3 +1,9 @@ +Changes since release 4.0 Alpha 1 + +* [HTTPCLIENT-672] re-sync with API changes in core + Contributed by Roland Weber + + Release 4.0 Alpha 1 ------------------- diff --git a/module-client/pom.xml b/module-client/pom.xml index 332790c8e..9d65c7fd5 100644 --- a/module-client/pom.xml +++ b/module-client/pom.xml @@ -63,7 +63,7 @@ org.apache.httpcomponents httpcore - 4.0-alpha5 + 4.0-alpha6-SNAPSHOT commons-logging diff --git a/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java b/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java index f374acd32..a129153f5 100644 --- a/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java +++ b/module-client/src/main/java/org/apache/http/impl/client/AbstractHttpClient.java @@ -306,8 +306,8 @@ public abstract class AbstractHttpClient } - public synchronized void clearResponseInterceptors() { - getHttpProcessor().clearResponseInterceptors(); + public synchronized void addResponseInterceptor(final HttpResponseInterceptor itcp, int index) { + getHttpProcessor().addInterceptor(itcp, index); } @@ -320,14 +320,24 @@ public abstract class AbstractHttpClient return getHttpProcessor().getResponseInterceptorCount(); } + + public synchronized void clearResponseInterceptors() { + getHttpProcessor().clearResponseInterceptors(); + } + + + public void removeResponseInterceptorByClass(Class clazz) { + getHttpProcessor().removeResponseInterceptorByClass(clazz); + } + public synchronized void addRequestInterceptor(final HttpRequestInterceptor itcp) { getHttpProcessor().addInterceptor(itcp); } - public synchronized void clearRequestInterceptors() { - getHttpProcessor().clearRequestInterceptors(); + public synchronized void addRequestInterceptor(final HttpRequestInterceptor itcp, int index) { + getHttpProcessor().addInterceptor(itcp, index); } @@ -341,6 +351,16 @@ public abstract class AbstractHttpClient } + public synchronized void clearRequestInterceptors() { + getHttpProcessor().clearRequestInterceptors(); + } + + + public void removeRequestInterceptorByClass(Class clazz) { + getHttpProcessor().removeRequestInterceptorByClass(clazz); + } + + public synchronized void setInterceptors(final List itcps) { getHttpProcessor().setInterceptors(itcps); }