Examples of ApacheHttpClientConfig


Examples of org.apache.wink.client.ApacheHttpClientConfig

public class WinkApacheNullValuesDuringTargetingTest extends WinkNullValuesDuringTargetingTest {

    @Override
    public void setUp() {
        client = new RestClient(new ApacheHttpClientConfig());
    }
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

        }
        return null;
    }

    private RestClient createRestClient(HttpClient httpClient) {
        ClientConfig config = new ApacheHttpClientConfig(httpClient);

        // configureBasicAuth(config, userName, password);

        config.applications(new Application() {

            @Override
            public Set<Class<?>> getClasses() {
                return Collections.emptySet();
            }

            @Override
            public Set<Object> getSingletons() {
                Set<Object> providers = new HashSet<Object>();
                providers.add(new DataBindingJAXRSReader(registry));
                providers.add(new DataBindingJAXRSWriter(registry));
                return providers;
            }

        });
       
        config.readTimeout(binding.getReadTimeout());
        RestClient client = new RestClient(config);
       
        // Default to GET for RPC
        httpMethod = HttpMethod.GET;
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

*/
public class AcceptHeaderHandlerApacheHTTPCoreTest extends AcceptHeaderHandlerTest {

    public void setUp() throws Exception {
        super.setUp();
        ClientConfig config = new ApacheHttpClientConfig();
//        config.setLoadWinkApplications(false);
        config.applications(new Application() {

            @Override
            public Set<Class<?>> getClasses() {
                Set<Class<?>> classes = new HashSet<Class<?>>();
                classes.add(JsonProvider.class);
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

    @Override
    public void setUp() throws Exception {
        super.setUp();
        client =
            new RestClient(new ApacheHttpClientConfig().acceptHeaderAutoSet(false)
                .applications(new Application() {

                    @Override
                    public Set<Class<?>> getClasses() {
                        Set<Class<?>> classes = new HashSet<Class<?>>();
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

    RestClient client = null;

    public void setUp() throws Exception {
        super.setUp();

        ClientConfig config = new ApacheHttpClientConfig();
//        config.setLoadWinkApplications(false);
        config.applications(new Application() {

            @Override
            public Set<Class<?>> getClasses() {
                Set<Class<?>> classes = new HashSet<Class<?>>();
                classes.add(JsonProvider.class);
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

import org.apache.wink.client.RestClient;

public class JAXBCollectionHTTPClientTest extends JAXBCollectionTest {

    public void setUp() throws Exception {
        ApacheHttpClientConfig config = new ApacheHttpClientConfig();
        client = new RestClient(config);
    }
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

public class TimeoutApacheHTTPTest extends TimeoutTest {

    @Override
    public RestClient getConnectTimeoutClient() {
        ApacheHttpClientConfig config = new ApacheHttpClientConfig();
        config.connectTimeout(20000);
        return new RestClient(config);
    }
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

        return new RestClient(config);
    }

    @Override
    public RestClient getDefaultClient() {
        return new RestClient(new ApacheHttpClientConfig());
    }
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

        return new RestClient(new ApacheHttpClientConfig());
    }

    @Override
    public RestClient getReadTimeoutClient() {
        ApacheHttpClientConfig config = new ApacheHttpClientConfig();
        config.readTimeout(20000);
        return new RestClient(config);
    }
View Full Code Here

Examples of org.apache.wink.client.ApacheHttpClientConfig

public class WinkApacheHttpMethodTest extends WinkHttpMethodTest {

    @Override
    public void setUp() {
        client = new RestClient(new ApacheHttpClientConfig());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.