|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nnsoft.shs.core.SimpleHttpServer
public final class SimpleHttpServer
A simple HttpServer
implementation.
This class must NOT be shared across threads, consider it be used inside main(String...) method.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.nnsoft.shs.HttpServer |
---|
HttpServer.Status |
Constructor Summary | |
---|---|
SimpleHttpServer()
|
Method Summary | |
---|---|
HttpServer.Status |
getStatus()
Returns the current server status. |
void |
init(HttpServerConfiguration configuratoruration)
Initializes the current server. |
void |
start()
Starts the current server instance. |
void |
stop()
Stops the current server execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleHttpServer()
Method Detail |
---|
public void init(HttpServerConfiguration configuratoruration) throws InitException
init
in interface HttpServer
InitException
- if any error occurs while starting up.public void start() throws RunException
start
in interface HttpServer
RunException
- if any fatal error occurs while running.public void stop() throws ShutdownException
stop
in interface HttpServer
ShutdownException
- if any error occurs while shutting down.public HttpServer.Status getStatus()
getStatus
in interface HttpServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |