org.apache.xmlrpc
public abstract class XmlRpc extends HandlerBase
XmlRpcServer and XmlRpcClient are the classes that actually implement an XML-RPC server and client.
Version: $Id: XmlRpc.java 350048 2005-11-30 21:49:32 +0100 (Mi, 30 Nov 2005) jochen $
See Also: XmlRpcServer
Nested Class Summary | |
---|---|
class | XmlRpc.Value
This represents a XML-RPC value parsed from the request. |
Field Summary | |
---|---|
static int | ARRAY |
static int | BASE64 |
static int | BOOLEAN |
StringBuffer | cdata
Used to collect character data ( CDATA ) of
parameter values. |
XmlRpc.Value | currentValue |
static boolean | debug
Whether to log debugging output. |
static String | defaultInputEncoding
Java's name for the input encoding we're using. |
static int | DATE |
static String | DEFAULT_PARSER
The default parser to use (MinML). |
static int | DOUBLE |
static String | encoding
Java's name for the encoding we're using. |
int | errorLevel |
String | errorMsg |
static int | FATAL |
String | inputEncoding |
static int | INTEGER |
static boolean | keepalive
Wheter to use HTTP Keep-Alive headers. |
static int | maxThreads
The maximum number of threads which can be used concurrently. |
String | methodName |
static int | NONE |
static Class | parserClass
The class name of SAX parser to use. |
boolean | readCdata |
static int | RECOVERABLE |
static Hashtable | saxDrivers |
static int | STRING |
static int | STRUCT |
TypeFactory | typeFactory |
static String[] | types
The list of valid XML elements used for RPC. |
TimeZone | tz |
Stack | values |
static String | version
The version string used in HTTP communication. |
Constructor Summary | |
---|---|
protected | XmlRpc()
Creates a new instance with the TypeFactory set to an instance of the class
named by the org.apache.xmlrpc.TypeFactory System
property. |
protected | XmlRpc(String typeFactoryName)
Creates a new instance with the specified TypeFactory.
|
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length)
Method called by SAX driver. |
TypeFactory | createTypeFactory(String className)
Creates a new instance of the specified TypeFactory.
|
void | endElement(String name)
Method called by SAX driver. |
void | error(SAXParseException e) |
void | fatalError(SAXParseException e) |
static String | getDefaultInputEncoding()
Return the default input encoding. |
String | getEncoding()
Return the encoding, transforming to the canonical name if
possible.
|
String | getInputEncoding()
Get the input encoding for this XmlRpc instance. |
static boolean | getKeepAlive()
get current HTTP keepalive mode. |
static int | getMaxThreads()
Gets the maximum number of threads used at any given moment. |
TimeZone | getServerTimeZone() |
protected abstract void | objectParsed(Object what)
This method is called when a root level object has been parsed.
|
void | parse(InputStream is)
Parse the input stream. |
static void | setDebug(boolean val)
Switch debugging output on/off. |
static void | setDefaultInputEncoding(String enc) Set the default input encoding of the XML.
|
static void | setDriver(String driver)
Set the SAX Parser to be used. |
static void | setDriver(Class driver)
Set the SAX Parser to be used by directly passing the Class object. |
static void | setEncoding(String enc)
Set the encoding of the XML.
|
void | setInputEncoding(String enc)
Set the input encoding for this XmlRpc instance. |
static void | setKeepAlive(boolean val)
Switch HTTP keepalive on/off. |
static void | setMaxThreads(int maxThreads)
Sets the maximum number of threads used at any given moment. |
void | setServerTimeZone(TimeZone z) |
void | startElement(String name, AttributeList atts)
Method called by SAX driver. |
CDATA
) of
parameter values.null
, signifying the platform default. This may
need to be overridden on platforms where the default encoding
is not compatible with ASCII (eg. EBCDIC) but the network is
still ASCII-like.UTF8
(of which ISO8859_1
is a
subset).org.apache.xmlrpc.TypeFactory
System
property. If property not set or class is unavailable, uses
the default of TypeFactory.Parameters: typeFactoryName The fully qualified class name of the TypeFactory implementation to use.
Parameters: className The fully qualified class name of the implementation to use.
Returns: The new type mapping.
Parameters: e
Throws: SAXException
Parameters: e
Throws: SAXException
Returns: the Java encoding name to use, if set, otherwise null.
See Also: getInputEncoding
See Also: canonicalizeEncoding
Returns: The Java encoding name to use. null
if not set.
objectParsed
is called.Parameters: enc The Java name of the encoding.
See Also: setInputEncoding
Parameters: enc The Java name of the encoding.
Parameters: enc The Java name of the encoding.