org.xiruss
Class JettyXirussRunnerBase
java.lang.Object
org.xiruss.JettyXirussRunnerBase
- Direct Known Subclasses:
- JettyXirussHttpApiRunner, JettyXirussHttpViewerRunner
public abstract class JettyXirussRunnerBase
- extends java.lang.Object
Field Summary |
protected org.mortbay.http.HttpServer |
server
Jetty HTTP server |
Method Summary |
protected void |
setupServer(int port,
org.mortbay.http.HttpContext context,
org.mortbay.http.HttpHandler xirussHandler)
Sets up the Jetty server with the right port, context, and HTTP handler. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected org.mortbay.http.HttpServer server
- Jetty HTTP server
JettyXirussRunnerBase
public JettyXirussRunnerBase()
start
public void start()
throws java.lang.Exception
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Throws:
java.lang.Exception
setupServer
protected void setupServer(int port,
org.mortbay.http.HttpContext context,
org.mortbay.http.HttpHandler xirussHandler)
throws java.io.IOException
- Sets up the Jetty server with the right port, context, and HTTP handler.
- Parameters:
port
- Port the server listens on.context
- The context the server is bound toxirussHandler
- The HTTP handler the server will use
- Throws:
java.io.IOException