Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package restx.specs.server;
 
User: xavierhanin Date: 4/10/13 Time: 12:02 PM
public class SpecsServer {
    public static void main(String[] argsthrows Exception {
        int port = 8888;
        String routerPath = "/api";
        String appBase = ".";
        System.setProperty("restx.factory.load""onrequest");
        getServer(portrouterPathappBase).startAndAwait();
    }
    static WebServer getServer(int portString routerPathString appBase) {
        return SimpleWebServer.builder().setRouterPath(routerPath).setAppBase(appBase).setPort(port).build();
    }
New to GrepCode? Check out our FAQ X