io.trygvis.appsh.booter.jetty
Class JettyWebServer

java.lang.Object
  extended by io.trygvis.appsh.booter.jetty.JettyWebServer

public class JettyWebServer
extends Object

A web server that's expected to be used from main() methods. The main method is expected to know how to configure the server. It will use System.err and System.exit(-1) on errors.


Nested Class Summary
static class JettyWebServer.ClasspathContext
          Adds a web application context from within the classpath.
static class JettyWebServer.ServerSettings
           
static class JettyWebServer.WarContext
           
 
Constructor Summary
JettyWebServer()
           
 
Method Summary
 io.trygvis.appsh.booter.jetty.JettyWebServer.Context addContext(io.trygvis.appsh.booter.jetty.JettyWebServer.Context context)
           
 void run()
          This should be moved to the main method.
 void setBasedir(File basedir)
           
 void setHttpPort(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyWebServer

public JettyWebServer()
Method Detail

setBasedir

public void setBasedir(File basedir)

setHttpPort

public void setHttpPort(int port)

addContext

public io.trygvis.appsh.booter.jetty.JettyWebServer.Context addContext(io.trygvis.appsh.booter.jetty.JettyWebServer.Context context)
                                                                throws Exception
Throws:
Exception

run

public void run()
         throws Exception
This should be moved to the main method. JettyWebServer should only be code to set up Jetty.

Throws:
Exception


Copyright © 2013. All Rights Reserved.