Package com.volantis.shared.net.proxy

Examples of com.volantis.shared.net.proxy.ProxyBuilder


     */
    public SystemProxyManager(
            ProxyFactory factory,
            SystemProperties systemProperties) {
        this.systemProperties = systemProperties;
        ProxyBuilder builder = factory.createProxyBuilder();
        Proxy sysProxy = null;
        Pattern exHostRE = null;

        if (initialiseAddress(builder)) {
            builder.setUser(getSystemPropertyAsString(HTTPSystemPropertyKeys.PROXY_USER));
            builder.setPassword(getSystemPropertyAsString(HTTPSystemPropertyKeys.PROXY_PASSWORD));

            sysProxy = builder.buildProxy();

            // Get the list of hosts that do not require the use of a proxy. It is
            // in the form of a glob list, i.e. uses * for wildcard and | for
            // choices
            exHostRE = compileExcludedHostList();
View Full Code Here


    public ProxyManagerAdapter(Proxy proxy) {
        this.proxy = proxy;

        ProxyFactory factory = ProxyFactory.getDefaultInstance();

        ProxyBuilder builder = factory.createProxyBuilder();
        builder.setHost(proxy.getHost());
        builder.setPort(proxy.getPort());
        builder.setUser(proxy.getUser());
        builder.setPassword(proxy.getPassword());
        this.newProxy = builder.buildProxy();
    }
View Full Code Here

TOP

Related Classes of com.volantis.shared.net.proxy.ProxyBuilder

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.