Package com.adito.boot

Examples of com.adito.boot.HostService


    }
   
    @Test
    public void createUncommonTunnel() throws Exception {
        DefaultTunnel tunnel = new DefaultTunnel(-1, "�2�$-_=+$%%^", "�2�-_=+2�$", -1, 0, false,
            "�2�$-_=+$%%^w", "�2�$%$%%^grre-_=+", 8080, new HostService("localhost"), null, Calendar.getInstance(), Calendar.getInstance());
        assertEquals("There should not be any Tunnel", 0, getTunnelService().getTunnels().size());
        Tunnel createdTunnel = createResource(tunnel);
        assertEquals("There should not be any Tunnel", 1, getTunnelService().getTunnels().size());
        deleteResource(createdTunnel);
    }
View Full Code Here


        Tunnel tunnel = (Tunnel) getResource();
        tunnel.setType(getTunnelType());
        tunnel.setAutoStart(isAutoStart());
        tunnel.setTransport(getTransport());
        tunnel.setSourcePort(Integer.parseInt(getSourcePort()));
        tunnel.setDestination(new HostService(getDestinationHost(), Integer.parseInt(getDestinationPort())));
        tunnel.setSourceInterface(getSourceInterface());
    }
View Full Code Here

        Timestamp ad = rs.getTimestamp("date_amended");
        Calendar a = Calendar.getInstance();
        a.setTimeInMillis(ad == null ? System.currentTimeMillis() : ad.getTime());
        return new DefaultTunnel(rs.getInt("realm_id"), rs.getString("name"), rs.getString("description"), rs.getInt("tunnel_id"), rs.getInt("type"), rs
                        .getBoolean("auto_start"), rs.getString("transport"), rs.getString("username"), rs.getInt("source_port"),
                        new HostService(rs.getString("destination_host"), rs.getInt("destination_port")), rs
                                        .getString("source_interface"), c, a);
    }
View Full Code Here

TOP

Related Classes of com.adito.boot.HostService

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.