summaryrefslogtreecommitdiffstats
path: root/base/kra
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-03-28 00:02:21 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-30 16:54:37 -0500
commita37d66662a859bd706f449edddc3ae715ee2d520 (patch)
treeebd6b8eba5b67988dfafd8bcef9607dc069cee71 /base/kra
parent0b39b68e4e72cbcf0f4d28488d54ce06117efa9c (diff)
downloadpki-a37d66662a859bd706f449edddc3ae715ee2d520.tar.gz
pki-a37d66662a859bd706f449edddc3ae715ee2d520.tar.xz
pki-a37d66662a859bd706f449edddc3ae715ee2d520.zip
Replaced deprecated ApacheHttpClientExecutor.
The deprecated ApacheHttpClientExecutor class has been replaced with ApacheHttpClient4Executor. Ticket #3
Diffstat (limited to 'base/kra')
-rw-r--r--base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
index 14b2aa3dc..509b82452 100644
--- a/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
+++ b/base/kra/functional/src/com/netscape/cms/servlet/test/DRMRestClient.java
@@ -11,14 +11,13 @@ import java.util.Enumeration;
import java.util.Iterator;
import org.apache.commons.httpclient.ConnectTimeoutException;
-import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.params.HttpConnectionParams;
import org.apache.commons.httpclient.protocol.Protocol;
import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;
import org.jboss.resteasy.client.ClientExecutor;
import org.jboss.resteasy.client.ClientResponse;
import org.jboss.resteasy.client.ProxyFactory;
-import org.jboss.resteasy.client.core.executors.ApacheHttpClientExecutor;
+import org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor;
import org.jboss.resteasy.spi.ResteasyProviderFactory;
import org.mozilla.jss.ssl.SSLCertificateApprovalCallback;
import org.mozilla.jss.ssl.SSLClientCertificateSelectionCallback;
@@ -169,8 +168,7 @@ public class DRMRestClient {
new Protocol(protocol, new JSSProtocolSocketFactory(), port));
}
- HttpClient httpclient = new HttpClient();
- ClientExecutor executor = new ApacheHttpClientExecutor(httpclient);
+ ClientExecutor executor = new ApacheHttpClient4Executor();
ResteasyProviderFactory providerFactory = ResteasyProviderFactory.getInstance();
providerFactory.addClientErrorInterceptor(new DRMErrorInterceptor());