org.apache.xmlrpc
Class XmlRpcServer.Worker
java.lang.Object
|
+--org.xml.sax.HandlerBase
|
+--org.apache.xmlrpc.XmlRpc
|
+--org.apache.xmlrpc.XmlRpcServer.Worker
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- Enclosing class:
- XmlRpcServer
- class XmlRpcServer.Worker
- extends XmlRpc
Performs streaming, parsing, and handler execution.
Implementation is not thread-safe.
Fields inherited from class org.apache.xmlrpc.XmlRpc |
ARRAY, BASE64, BOOLEAN, cdata, currentValue, DATE, dateformat, debug, DEFAULT_PARSER, DOUBLE, encoding, encodings, errorLevel, errorMsg, FATAL, INTEGER, keepalive, maxThreads, methodName, NONE, parserClass, readCdata, RECOVERABLE, saxDrivers, STRING, STRUCT, types, values, version |
Method Summary |
byte[] |
execute(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
Given a request for the server, generates a response. |
private byte[] |
executeInternal(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
|
(package private) void |
objectParsed(java.lang.Object what)
Called when an object to be added to the argument list has
been parsed. |
(package private) void |
writeError(int code,
java.lang.String message,
XmlRpc.XmlWriter writer)
Writes an XML-RPC error response to the XML writer. |
(package private) void |
writeResponse(java.lang.Object param,
XmlRpc.XmlWriter writer)
Writes an XML-RPC response to the XML writer. |
Methods inherited from class org.apache.xmlrpc.XmlRpc |
, , characters, endElement, error, fatalError, getEncoding, getKeepAlive, getMaxThreads, parse, setDebug, setDriver, setDriver, setEncoding, setKeepAlive, setMaxThreads, startElement |
Methods inherited from class org.xml.sax.HandlerBase |
endDocument, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
inParams
private java.util.Vector inParams
buffer
private java.io.ByteArrayOutputStream buffer
writer
private XmlRpc.XmlWriter writer
XmlRpcServer.Worker
protected XmlRpcServer.Worker()
- Creates a new instance.
execute
public byte[] execute(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
- Given a request for the server, generates a response.
executeInternal
private byte[] executeInternal(java.io.InputStream is,
java.lang.String user,
java.lang.String password)
objectParsed
void objectParsed(java.lang.Object what)
- Called when an object to be added to the argument list has
been parsed.
- Overrides:
objectParsed
in class XmlRpc
writeResponse
void writeResponse(java.lang.Object param,
XmlRpc.XmlWriter writer)
throws XmlRpcException,
java.io.IOException
- Writes an XML-RPC response to the XML writer.
writeError
void writeError(int code,
java.lang.String message,
XmlRpc.XmlWriter writer)
throws XmlRpcException,
java.io.IOException
- Writes an XML-RPC error response to the XML writer.
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.