org.nnsoft.shs
Interface HttpServer

All Known Implementing Classes:
SimpleHttpServer

public interface HttpServer

An Simple Server implementation able to serve


Nested Class Summary
static class HttpServer.Status
          Statuses that the Server can assume.
 
Method Summary
 HttpServer.Status getStatus()
          Returns the current server status.
 void init(HttpServerConfiguration serverConfiguration)
          Initializes the current server.
 void start()
          Starts the current server instance.
 void stop()
          Stops the current server execution.
 

Method Detail

init

void init(HttpServerConfiguration serverConfiguration)
          throws InitException
Initializes the current server.

Parameters:
serverConfig - the server configuration
Throws:
InitException - if any error occurs while starting up.

start

void start()
           throws RunException
Starts the current server instance.

Throws:
RunException - if any fatal error occurs while running.

stop

void stop()
          throws ShutdownException
Stops the current server execution.

Throws:
ShutdownException - if any error occurs while shutting down.

getStatus

HttpServer.Status getStatus()
Returns the current server status.

Returns:
the current server status.


Copyright © 2012 99 Software Foundation. All Rights Reserved.