public interface ESXmlRpcWebServerProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(String handlerName,
Class<?> clazz)
Adds a handler to the web server.
|
int |
getPort()
Returns the port the server is listening to.
|
void |
initServer()
Starts the server.
|
boolean |
removeHandler(String handlerName)
Removes a handler from the web server.
|
void |
setPort(int port)
Set the port for the server, must be called before any other method can be called.
|
void |
stopServer()
Stops the server.
|
void stopServer()
boolean removeHandler(String handlerName)
handlerName - the handler's namevoid addHandler(String handlerName, Class<?> clazz) throws ESServerInitException
handlerName - handler nameclazz - class of server interfaceESServerInitException - in case of failurevoid initServer()
throws ESServerInitException
ESServerInitException - in case of failurevoid setPort(int port)
port - http(s) port where server will answerint getPort()
Copyright © 2017. All rights reserved.