io.trygvis.appsh.booter.jetty
Class JettyWebServer
java.lang.Object
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.
|
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 |
JettyWebServer
public JettyWebServer()
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.