Package org.mockserver.client.http

Examples of org.mockserver.client.http.ApacheHttpClient


    private final ApacheHttpClient apacheHttpClient;

    public InitializerMavenPluginTest() {
        bufferSize(1024);
        maxTimeout(TimeUnit.SECONDS.toMillis(10));
        apacheHttpClient = new ApacheHttpClient(true);
    }
View Full Code Here


        if (contextPath == null) {
            throw new IllegalArgumentException("ContextPath can not be null");
        }
        this.port = port;
        this.uriBase = "http://" + host + ":" + port + (contextPath.length() > 0 && !contextPath.startsWith("/") ? "/" : "") + contextPath;
        this.apacheHttpClient = new ApacheHttpClient(false);
    }
View Full Code Here

     * @param port the port for the proxy to communicate with
     */
    public ProxyClient(String host, int port) {
        if (Boolean.parseBoolean(System.getProperty("defaultProxySet"))) {
            uriBase = "https://" + host + ":" + port;
            apacheHttpClient = new ApacheHttpClient(true);
        } else {
            uriBase = "http://" + host + ":" + port;
            apacheHttpClient = new ApacheHttpClient(false);
        }
    }
View Full Code Here

    private final ApacheHttpClient apacheHttpClient;

    public AbstractClientServerIntegrationTest() {
        bufferSize(1024);
        maxTimeout(TimeUnit.SECONDS.toMillis(10));
        apacheHttpClient = new ApacheHttpClient(true);
    }
View Full Code Here

    private final ApacheHttpClient apacheHttpClient;

    public InitializerMavenPluginTest() {
        bufferSize(1024);
        maxTimeout(TimeUnit.SECONDS.toMillis(10));
        apacheHttpClient = new ApacheHttpClient(true);
    }
View Full Code Here

TOP

Related Classes of org.mockserver.client.http.ApacheHttpClient

Copyright © 2018 www.massapicom. 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.