public final class SecureWebServer
extends org.apache.xmlrpc.WebServer
implements org.apache.xmlrpc.AuthenticatedXmlRpcHandler
Constructor and Description |
---|
SecureWebServer(int port)
Initializes the XML-RPC web server on the given
port and
adds a default handler that traps all calls and makes them authenticated. |
Modifier and Type | Method and Description |
---|---|
void |
addDispatcher(Dispatcher dispatcher)
Adds an authenticated XML-RPC dispatcher.
|
Object |
execute(String methodSpecifier,
Vector params,
String user,
String password)
Executes the XML-RPC method, first authenticating the given user and
authorizing him based on his roles.
|
public SecureWebServer(int port)
port
and
adds a default handler that traps all calls and makes them authenticated.port
- The port to run the XML-RPC webserver on.IOException
- If any error occurs.public Object execute(String methodSpecifier, Vector params, String user, String password)
execute
in interface org.apache.xmlrpc.AuthenticatedXmlRpcHandler
methodSpecifier
- the name of the XML-RPC method to call.params
- the parameters passed to the method.public void addDispatcher(Dispatcher dispatcher)
dispatcher
- The dispatcher to add which will service the authenticated
XML-RPC method callsCopyright © 1999–2017 Apache OODT. All rights reserved.