net.sf.mud4j.web.server
Interface WebServer

All Known Implementing Classes:
JettyWebServer

public interface WebServer

Provide interface for configuring a web server.

Author:
Matthew Purland

Method Summary
 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.
 

Method Detail

start

void start()
           throws java.io.IOException
Start the webserver.

Throws:
java.io.IOException - in case of I/O problems or the server won't start.

stop

void stop()
          throws java.io.IOException
Stop the webserver.

Throws:
java.io.IOException - in case of I/O problems or if it can't stop the server.

isStarted

boolean isStarted()
Whether the web server is started.

Returns:
Returns whether the web server is currently started.

isStopped

boolean isStopped()
Whether the web server is stopped.



Copyright © 2006-2007 mud4j. All Rights Reserved.