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)
starting 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
IOExceptionpublic URL getEndpoint()
SampXmlRpcServergetEndpoint in interface SampXmlRpcServerpublic void addHandler(SampXmlRpcHandler handler)
SampXmlRpcServeraddHandler in interface SampXmlRpcServerhandler - handler to addpublic void removeHandler(SampXmlRpcHandler handler)
SampXmlRpcServerremoveHandler in interface SampXmlRpcServerhandler - handler to removeCopyright © 2008–2024. All rights reserved.