|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mud4j.web.server.JettyWebServer
public class JettyWebServer
Provide a Jetty webserver that will use classes on the classpath or as specified to configure the container.
Constructor Summary | |
---|---|
JettyWebServer(int port)
Constructor to provide configurable port listener. |
Method Summary | |
---|---|
protected void |
configureAndStartServer()
Configure server servlets and configurations. |
boolean |
isStarted()
Whether the web server is started. |
boolean |
isStopped()
Whether the web server is stopped. |
void |
start()
Start the webserver. |
void |
stop()
Stop the webserver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettyWebServer(int port)
port
- Port to listen on.Method Detail |
---|
protected void configureAndStartServer() throws java.io.IOException
java.io.IOException
- in case of Jetty configuration setup problempublic void start() throws java.io.IOException
start
in interface WebServer
java.io.IOException
- in case of I/O problems or the server won't start.public void stop() throws java.io.IOException
stop
in interface WebServer
java.io.IOException
- in case of I/O problems or if it can't stop the server.public boolean isStarted()
isStarted
in interface WebServer
public boolean isStopped()
isStopped
in interface WebServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |