net.datacrow.core.web
Class DcWebServer

java.lang.Object
  extended by net.datacrow.core.web.DcWebServer

public class DcWebServer
extends java.lang.Object

The web server. This is the wrapper around the Jetty server.

Author:
Robert Jan van der Waals

Method Summary
static DcWebServer getInstance()
          Returns the instance of the web server.
 boolean isRunning()
          Indicates if the server is currently up and running.
 void start()
          Starts the Web Server.
 void stop()
          Stops the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DcWebServer getInstance()
Returns the instance of the web server.


isRunning

public boolean isRunning()
Indicates if the server is currently up and running.


stop

public void stop()
          throws java.lang.Exception
Stops the server.

Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Starts the Web Server. The port is configurable.

Throws:
java.lang.Exception