Package com.googlecode.utterlyidle

Examples of com.googlecode.utterlyidle.ServerConfiguration


    private final Integer port;

    public RestConsole(Console console, Integer port) throws Exception {
        super(console);

        ServerConfiguration configuration = defaultConfiguration().port(port);
        RestConsoleApplication application = new RestConsoleApplication(basePath("/"), this);

        this.server = new RestServer(application, configuration);
        this.port = port;
    }
View Full Code Here


import static javarepl.Utils.randomServerPort;

public class WebConsoleServer {

    public static void main(String... args) throws Exception {
        ServerConfiguration configuration = defaultConfiguration().port(port(args).getOrElse(randomServerPort()));
        WebConsoleApplication application = new WebConsoleApplication(basePath("/"));
        new RestServer(application, configuration);

    }
View Full Code Here

TOP

Related Classes of com.googlecode.utterlyidle.ServerConfiguration

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.