public class ApacheServer extends Object implements SampXmlRpcServer
Constructor and Description |
---|
ApacheServer()
Constructs a new server starting up a new WebServer object.
|
ApacheServer(WebServer webServer,
int port)
Constructs a new server based on a given WebServer object.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(SampXmlRpcHandler handler)
Adds a handler which can service certain XML-RPC methods.
|
URL |
getEndpoint()
Returns the server's endpoint.
|
void |
removeHandler(SampXmlRpcHandler handler)
Removes a previously-added handler.
|
public ApacheServer(WebServer webServer, int port)
start
ing the WebServer and performing
any other required configuration lies with the caller.webServer
- apache xmlrpc webserver objectport
- port number on which the server is runningpublic ApacheServer() throws IOException
IOException
public URL getEndpoint()
SampXmlRpcServer
getEndpoint
in interface SampXmlRpcServer
public void addHandler(SampXmlRpcHandler handler)
SampXmlRpcServer
addHandler
in interface SampXmlRpcServer
handler
- handler to addpublic void removeHandler(SampXmlRpcHandler handler)
SampXmlRpcServer
removeHandler
in interface SampXmlRpcServer
handler
- handler to removeCopyright © 2008–2024. All rights reserved.