Package org.cloudfoundry.caldecott.client

Examples of org.cloudfoundry.caldecott.client.HttpTunnelFactory


        }
        catch (MalformedURLException e) {
          // Unable to handle proxy URL. Attempt to connect anyway.
        }

        TunnelFactory tunnelFactory = new HttpTunnelFactory(url, host, port, auth, proxyConfiguration);

        List<TunnelServer> tunnelServers = new ArrayList<TunnelServer>(1);
        int localPort = getTunnelServer(tunnelFactory, tunnelServers);

        if (tunnelServers.isEmpty() || localPort == -1) {
View Full Code Here


    String svc_passwd = info.get("password");
    String svc_dbname = info.get("db") != null ? info.get("db") : info.get("name");
    String txt_dbname = info.get("db") != null ? "db" : "name";
    String svc_vhost = info.get("vhost");

    TunnelServer server = new TunnelServer(local, new HttpTunnelFactory(url, host, port, auth));

    server.start();

    System.out.println("Tunnel is running on " + LOCAL_HOST +" port " + LOCAL_PORT + " with auth=" + auth);
    if (svc_vhost != null) {
View Full Code Here

TOP

Related Classes of org.cloudfoundry.caldecott.client.HttpTunnelFactory

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.