public class XmlRpcServer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private DefaultHandlerMapping |
handlerMapping
We want the
$default handler to always be
available. |
private int |
maxThreads
The maximum number of threads which can be used concurrently, by defaut use the one defined
in XmlRpc
|
private int |
nbrWorkers |
private java.util.Stack |
pool |
Constructor and Description |
---|
XmlRpcServer()
Construct a new XML-RPC server.
|
Modifier and Type | Method and Description |
---|---|
void |
addHandler(java.lang.String handlerName,
java.lang.Object handler) |
protected XmlRpcWorker |
createWorker() |
byte[] |
execute(java.io.InputStream is)
Parse the request and execute the handler method, if one is
found.
|
byte[] |
execute(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
Parse the request and execute the handler method, if one is
found.
|
byte[] |
execute(java.io.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(java.lang.String handlerName) |
void |
setMaxThreads(int maxThreads)
Set the MaxThreads for this Client
|
private java.util.Stack pool
private int nbrWorkers
private int maxThreads
private DefaultHandlerMapping handlerMapping
$default
handler to always be
available.public XmlRpcServer()
public void addHandler(java.lang.String handlerName, java.lang.Object handler)
public void removeHandler(java.lang.String handlerName)
public XmlRpcHandlerMapping getHandlerMapping()
public void setMaxThreads(int maxThreads)
public int getMaxThreads()
public byte[] execute(java.io.InputStream is)
public byte[] execute(java.io.InputStream is, java.lang.String user, java.lang.String password)
public byte[] execute(java.io.InputStream is, XmlRpcContext context)
protected XmlRpcWorker getWorker()
null
).java.lang.RuntimeException
- If the server exceeds its maximum
number of allowed requests.protected XmlRpcWorker createWorker()
Copyright ? 1999-2002 Apache Software Foundation. All Rights Reserved.