dk.netarkivet.common.webinterface
Class GUIWebServer

java.lang.Object
  extended by dk.netarkivet.common.webinterface.GUIWebServer
All Implemented Interfaces:
CleanupIF

public class GUIWebServer
extends java.lang.Object
implements CleanupIF

A class representing an HttpServer. This class loads web applications as given in settings.


Field Summary
(package private) static GUIWebServer instance
          The unique instance of this class.
 
Constructor Summary
protected GUIWebServer()
          Initialises a GUI Web Server and adds web applications.
 
Method Summary
 void cleanup()
          Closes the GUI webserver, and nullifies this instance.
static GUIWebServer getInstance()
          Returns the unique instance of this class.
 void startServer()
          Starts the jsp web server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

static GUIWebServer instance
The unique instance of this class.

Constructor Detail

GUIWebServer

protected GUIWebServer()
Initialises a GUI Web Server and adds web applications.

Throws:
IOFailure - on trouble starting server.
Method Detail

getInstance

public static GUIWebServer getInstance()
Returns the unique instance of this class. If instance is new, starts a GUI web server.

Returns:
the instance

startServer

public void startServer()
Starts the jsp web server.

Throws:
IOFailure - if the server for any reason cannot be started.

cleanup

public void cleanup()
Closes the GUI webserver, and nullifies this instance.

Specified by:
cleanup in interface CleanupIF