|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.WebServer
org.apache.oodt.cas.filemgr.system.auth.SecureWebServer
public final class SecureWebServer
An XML-RPC Web Server that requires authentication and authorization.
Field Summary |
---|
Fields inherited from class org.apache.xmlrpc.WebServer |
---|
accept, clength, conclose, conkeep, ctype, deny, doubleNewline, listener, newline, ok, runners, server, serverSocket, threadpool, wwwAuthenticate, xmlrpc |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.xmlrpc.WebServer |
---|
acceptClient, addDefaultHandlers, addHandler, allowConnection, checkSocket, createServerSocket, denyClient, determinePort, getRunner, main, removeHandler, run, setParanoid, shutdown, start, toHTTPBytes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecureWebServer(int port) throws IOException
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.Method Detail |
---|
public Object execute(String methodSpecifier, Vector params, String user, String password) throws Exception
execute
in interface org.apache.xmlrpc.AuthenticatedXmlRpcHandler
methodSpecifier
- the name of the XML-RPC method to call.params
- the parameters passed to the method.
Exception
public void addDispatcher(Dispatcher dispatcher)
dispatcher
- The dispatcher to add which will service the authenticated
XML-RPC method calls
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |