org.apache.xmlrpc
public class XmlRpcServer extends Object
Field Summary | |
---|---|
DefaultHandlerMapping | handlerMapping
We want the $default handler to always be
available. |
int | maxThreads
The maximum number of threads which can be used concurrently, by defaut use the one defined
in XmlRpc |
int | nbrWorkers |
Stack | pool |
Constructor Summary | |
---|---|
XmlRpcServer()
Construct a new XML-RPC server. |
Method Summary | |
---|---|
void | addHandler(String handlerName, Object handler) |
protected XmlRpcWorker | createWorker() |
byte[] | execute(InputStream is)
Parse the request and execute the handler method, if one is
found. |
byte[] | execute(InputStream is, String user, String password)
Parse the request and execute the handler method, if one is
found. |
byte[] | execute(InputStream is, XmlRpcContext context)
Parse the request and execute the handler method, if one is
found. |
XmlRpcHandlerMapping | getHandlerMapping()
Return the current XmlRpcHandlerMapping. |
int | getMaxThreads()
Get the MaxThreads for this Server |
protected XmlRpcWorker | getWorker()
Hands out pooled workers.
|
void | removeHandler(String handlerName) |
void | setMaxThreads(int maxThreads)
Set the MaxThreads for this Client |
$default
handler to always be
available.See Also: DefaultHandlerMapping
Returns: A worker (never null
).
Throws: RuntimeException If the server exceeds its maximum number of allowed requests.
See Also: removeHandler