|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xmlrpc.XmlRpcServer
com.lightdev.app.trec.server.sam.SAMXmlRpcServer
public class SAMXmlRpcServer
A special XmlRpcServer that keeps a reference to its handlers separate to the
default Apache XML-RPC implementation. In addition, SAMXmlRpcServer
by default creates an SAMAuthorizer handler
for login, logout and password changes of logged in users. It uses a Gatekeeper
object for authentication and authorization.
SAMXmlRpcServer uses a specific SAMXmlRpcWorker to implement
authentication and authorization using SAM session ids on a method call level.
| Constructor Summary | |
|---|---|
SAMXmlRpcServer(Gatekeeper g)
construct a new instance of a SAMXmlRpcServer oject |
|
| Method Summary | |
|---|---|
void |
addHandler(String handlerName,
Agent handler)
add a handler object to this server |
protected XmlRpcWorker |
createWorker()
create an XmlRpcWorker suitable for this server object |
void |
destroy()
destroy this object |
Agent |
getAgent(String agentName)
get the agent with the given name |
Enumeration |
getAgentNames()
get the names of all agents of this server |
Gatekeeper |
getGatekeeper()
get the gatekeeper this server uses for authentication and authorization |
void |
removeHandler(String handlerName)
remove a handler object from this server |
| Methods inherited from class org.apache.xmlrpc.XmlRpcServer |
|---|
addHandler, execute, execute, execute, getHandlerMapping, getMaxThreads, getWorker, setMaxThreads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAMXmlRpcServer(Gatekeeper g)
g - the gatekeeper to use for authentication and authorization| Method Detail |
|---|
public void addHandler(String handlerName,
Agent handler)
handlerName - the name to be exposed to clientshandler - the agent to add under the given namepublic void removeHandler(String handlerName)
removeHandler in class XmlRpcServerhandlerName - the name of the handler to removepublic Agent getAgent(String agentName)
agentName - name of agent to get
public Enumeration getAgentNames()
public Gatekeeper getGatekeeper()
protected XmlRpcWorker createWorker()
createWorker in class XmlRpcServerpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||