public class SystemHandler extends java.lang.Object implements ContextXmlRpcHandler
system.multicall
).Modifier and Type | Field and Description |
---|---|
private DefaultHandlerMapping |
systemMapping |
Modifier | Constructor and Description |
---|---|
|
SystemHandler()
Creates a new instance.
|
|
SystemHandler(XmlRpcHandlerMapping handlerMapping)
Deprecated.
use new SystemHandler() and addDefaultSystemHandlers() instead.
|
protected |
SystemHandler(XmlRpcServer server)
Deprecated.
use new SystemHandler() and addDefaultSystemHandlers() instead.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultSystemHandlers()
Add the default system handlers.
|
void |
addSystemHandler(java.lang.String handlerName,
ContextXmlRpcHandler handler) |
java.lang.Object |
execute(java.lang.String method,
java.util.Vector params,
XmlRpcContext context)
Execute a <ignored>.<name> call by calling the handler for
<name> in the the system handler mapping.
|
void |
removeSystemHandler(java.lang.String handlerName) |
private DefaultHandlerMapping systemMapping
public SystemHandler()
public SystemHandler(XmlRpcHandlerMapping handlerMapping)
XmlRpcHandlerMapping
. This
method will add the system.multicall handler when a non-null
handlerMapping is specified. The value itself is ignored.protected SystemHandler(XmlRpcServer server)
XmlRpcServer
.
This method will add the default handlers when the specfied server's
getHandlerMapping() returns a non-null handler mapping.server
- The server to retrieve the XmlRpcHandlerMapping from.public void addDefaultSystemHandlers()
public void addSystemHandler(java.lang.String handlerName, ContextXmlRpcHandler handler)
public void removeSystemHandler(java.lang.String handlerName)
public java.lang.Object execute(java.lang.String method, java.util.Vector params, XmlRpcContext context) throws java.lang.Exception
execute
in interface ContextXmlRpcHandler
AuthenticationFailed
- If authentication fails, an
exception of this type must be thrown.java.lang.Exception
AuthenticationFailed
Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.