public interface HTTPServer
Modifier and Type | Method and Description |
---|---|
void |
addContext(java.lang.Object obj,
java.lang.String path)
adds the given handler at the given path to the context
|
java.lang.String |
getName()
returns the name of the server
|
void |
join()
joins the thread of the server
|
void |
setService(java.lang.String path,
java.util.Map props,
Service service)
It creates the handler or servlet with the given property map and sets
the service on the newly created object.
|
void |
start()
starts the server with the given service
|
void |
stop()
stops the server
|
void setService(java.lang.String path, java.util.Map props, Service service)
void addContext(java.lang.Object obj, java.lang.String path)
void start() throws java.lang.Exception
java.lang.Exception
void stop() throws java.lang.Exception
java.lang.Exception
void join() throws java.lang.InterruptedException
java.lang.InterruptedException
java.lang.String getName()