Package org.restlet.util

Examples of org.restlet.util.ServerList


     */
    public Component() {
        super();
        this.hosts = new CopyOnWriteArrayList<VirtualHost>();
        this.clients = new ClientList(null);
        this.servers = new ServerList(null, this);
        this.realms = new CopyOnWriteArrayList<Realm>();
        this.services = new ServiceList(getContext());

        if (Engine.getInstance() != null) {
            this.helper = new ComponentHelper(this);
View Full Code Here


    }

    public void testServer() throws Exception {
        System.out.println("-- testServerParams()");

        ServerList servers = c.getServers();
        assertNotNull("Server list MUST NOT be null", servers);
        assertEquals("Server list MUST contain 1 item", 1, servers.size());
        Server server = servers.get(0);
        assertNotNull("The single Server MUST NOT be null", server);

        assertEquals(server.getName(), RESTLET_NAME);
        assertEquals(server.getDescription(), RESTLET_DESCRIPTION);
    }
View Full Code Here

    }

    public void testServerParams() throws Exception {
        System.out.println("-- testServerParams()");

        ServerList servers = c.getServers();
        assertNotNull("Server list MUST NOT be null", servers);
        assertEquals("Server list MUST contain 1 item", 1, servers.size());
        Server server = servers.get(0);
        assertNotNull("The single Server MUST NOT be null", server);

        String msg = "[" + SERVER + "] ";
        Context ctx = server.getContext();
View Full Code Here

TOP

Related Classes of org.restlet.util.ServerList

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.