Search in sources :

Example 6 with HttpConnectionManagerParams

use of org.apache.commons.httpclient.params.HttpConnectionManagerParams in project sling by apache.

the class JsonPipe method configureHttpClient.

/**
     * Configure http client
     */
private void configureHttpClient() {
    HttpConnectionManager manager = new MultiThreadedHttpConnectionManager();
    HttpConnectionManagerParams params = new HttpConnectionManagerParams();
    manager.setParams(params);
    client = new HttpClient(manager);
    client.getParams().setAuthenticationPreemptive(false);
}
Also used : HttpConnectionManagerParams(org.apache.commons.httpclient.params.HttpConnectionManagerParams) HttpClient(org.apache.commons.httpclient.HttpClient) MultiThreadedHttpConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager) HttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager) MultiThreadedHttpConnectionManager(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager)

Aggregations

HttpConnectionManagerParams (org.apache.commons.httpclient.params.HttpConnectionManagerParams)6 HttpClient (org.apache.commons.httpclient.HttpClient)4 MultiThreadedHttpConnectionManager (org.apache.commons.httpclient.MultiThreadedHttpConnectionManager)3 HttpConnectionManager (org.apache.commons.httpclient.HttpConnectionManager)2 HttpClientParams (org.apache.commons.httpclient.params.HttpClientParams)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 File (java.io.File)1 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 URI (java.net.URI)1 URL (java.net.URL)1 HashMap (java.util.HashMap)1 LinkedHashSet (java.util.LinkedHashSet)1 ResolveEndpointFailedException (org.apache.camel.ResolveEndpointFailedException)1 HttpBinding (org.apache.camel.http.common.HttpBinding)1 HttpRestHeaderFilterStrategy (org.apache.camel.http.common.HttpRestHeaderFilterStrategy)1 UrlRewrite (org.apache.camel.http.common.UrlRewrite)1 HeaderFilterStrategy (org.apache.camel.spi.HeaderFilterStrategy)1 HeadMethod (org.apache.commons.httpclient.methods.HeadMethod)1 Test (org.junit.Test)1