public class XmlRpcDispatcher extends XmlRpcParser
| Constructor and Description |
|---|
XmlRpcDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
dispatch(java.io.InputStream xmlInput)
Inbound XML-RPC messages to a server are delegated to this
method.
|
void |
endElement(java.lang.String name)
Override the endElement() method of the XmlRpcParser class, and catch
the method name element.
|
static XmlRpcDispatcher |
getDispatcher(XmlRpcServer server,
java.lang.String callerIp)
Aquires a dispatcher from the pool of available dispatchers, or
creates a new dispatcher if the pool is empty.
|
void |
release()
Returns the dispatcher back into the dispatcher pool for use in
future invocations.
|
characters, endDocument, ignorableWhitespace, parse, processingInstruction, setDocumentLocator, setDriver, setDriver, startDocument, startElementpublic static XmlRpcDispatcher getDispatcher(XmlRpcServer server, java.lang.String callerIp)
server - The server object the dispatcher shall use. This
object contains the registered invocation handlers and
invocation processors needed by a dispatcher.callerIp - This is supplied for informational purposes and
is made available to custom processors.
TODO: The processor objects should have the possibility to
abort an invocation based on this information. The XmlRpcProcessor
interface should be able to throw exceptions in preProcess.public void release()
public byte[] dispatch(java.io.InputStream xmlInput)
throws java.lang.Throwable
xmlInput - java.lang.Throwablepublic void endElement(java.lang.String name)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.DocumentHandlerendElement in class XmlRpcParserorg.xml.sax.SAXException