Package com.atlassian.localtunnel.data

Examples of com.atlassian.localtunnel.data.ControlTunnelResponse


       
        pingPongService = new ControlPingPongService(control);
        pingPongService.start();

        Gson gson = new Gson();
        ControlTunnelResponse ctr = gson.fromJson(response,ControlTunnelResponse.class);
       
        proxyService = new ProxyService(backend,port,tunnelName,clientName,ctr.getConcurrency().intValue());
        proxyService.start();

        if (hostURL.getPort() == 80)
        {
            remoteHost = "http://" + ctr.getHost().split("\\.")[0] + "." + hostURL.getHost();
        } else
        {
            remoteHost = "http://" + ctr.getHost().split("\\.")[0] + "." + hostURL.getHost() + ":" + hostURL.getPort();
        }

        System.out.println("started the local tunnel");
        System.out.println("you can now access: " + remoteHost);
        started = true;
View Full Code Here


       
        pingPongService = new ControlPingPongService(control);
        pingPongService.start();

        Gson gson = new Gson();
        ControlTunnelResponse ctr = gson.fromJson(response,ControlTunnelResponse.class);
       
        proxyService = new ProxyService(backend,port,tunnelName,clientName,ctr.getConcurrency().intValue());
        proxyService.start();

        String[] hostParts = host.split(":");
        if(hostParts.length > 1 && !hostParts[1].equals("80"))
        {
            remoteHost = "http://" + ctr.getHost().split("\\.")[0] + "." + host;
        }
        else
        {
            remoteHost = "http://" + ctr.getHost().split("\\.")[0] + "." + hostParts[0];
        }
       
        System.out.println("started the local tunnel");
        System.out.println("you can now access: " + remoteHost);
        started = true;
View Full Code Here

TOP

Related Classes of com.atlassian.localtunnel.data.ControlTunnelResponse

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.