|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xmlrpc.XmlRpcServer
public class XmlRpcServer
A multithreaded, reusable XML-RPC server object. The name may be misleading because this does not open any server sockets. Instead it is fed by passing an XML-RPC input stream to the execute method. If you want to open a HTTP listener, use the WebServer class instead.
Constructor Summary | |
---|---|
XmlRpcServer()
Construct a new XML-RPC server. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRpcServer()
Method Detail |
---|
public void addHandler(java.lang.String handlerName, java.lang.Object handler)
DefaultHandlerMapping.addHandler(String, Object)
public void removeHandler(java.lang.String handlerName)
DefaultHandlerMapping.removeHandler(String)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |