org.xiruss
Class JettyXirussRunnerBase

java.lang.Object
  extended by 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
 
Constructor Summary
JettyXirussRunnerBase()
           
 
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
 

Field Detail

server

protected org.mortbay.http.HttpServer server
Jetty HTTP server

Constructor Detail

JettyXirussRunnerBase

public JettyXirussRunnerBase()
Method Detail

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 to
xirussHandler - The HTTP handler the server will use
Throws:
java.io.IOException