|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ESXmlRpcWebServerProvider
Extension point interface to use client specific web server/server configuration/logging etc to implement EMFStore Server, e.g. embedded Jetty. Only one extension is allowed in a OSGi system, otherwise EMFStore startup will terminate with an error. If none is specified, the default EMFStore built-in server is used.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void stopServer()
boolean removeHandler(String handlerName)
handlerName - the handler's name
void addHandler(String handlerName,
Class<?> clazz)
throws ESServerInitException
handlerName - handler nameclazz - class of server interface
ESServerInitException - in case of failure
void initServer()
throws ESServerInitException
ESServerInitException - in case of failurevoid setPort(int port)
port - http(s) port where server will answerint getPort()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||