|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.HandlerBase | +--org.apache.xmlrpc.XmlRpc
This abstract base class provides basic capabilities for XML-RPC, like parsing of parameters or encoding Java objects into XML-RPC format. Any XML parser with a SAX interface can be used.
XmlRpcServer and XmlRpcClient are the classes that actually implement an XML-RPC server and client.
XmlRpcServer
,
XmlRpcClient
Field Summary | |
static boolean |
debug
Whether to log debugging output. |
static java.lang.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(java.lang.String typeFactory)
Creates a new instance with the specified TypeFactory . |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Method called by SAX driver. |
void |
endElement(java.lang.String name)
Method called by SAX driver. |
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
java.lang.String |
getEncoding()
Return the encoding, transforming to the canonical name if possible. |
static boolean |
getKeepAlive()
get current HTTP keepalive mode. |
static int |
getMaxThreads()
Gets the maximum number of threads used at any given moment. |
protected abstract void |
objectParsed(java.lang.Object what)
This method is called when a root level object has been parsed. |
static void |
setDebug(boolean val)
Switch debugging output on/off. |
static void |
setDriver(java.lang.Class driver)
Set the SAX Parser to be used by directly passing the Class object. |
static void |
setDriver(java.lang.String driver)
Set the SAX Parser to be used. |
static void |
setEncoding(java.lang.String enc)
Set the encoding of the XML. |
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 |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
Method called by SAX driver. |
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, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String version
public static boolean debug
Constructor Detail |
protected XmlRpc()
TypeFactory
set to an instance of the class
named by the org.apache.xmlrpc.TypeFactory
System
property. If property not set or class is unavailable, uses
the default.protected XmlRpc(java.lang.String typeFactory)
TypeFactory
.typeFactory
- The implementation to use.Method Detail |
public static void setDriver(java.lang.String driver) throws java.lang.ClassNotFoundException
public static void setDriver(java.lang.Class driver)
public static void setEncoding(java.lang.String enc)
enc
- The Java name of the encoding.public java.lang.String getEncoding()
org.apache.xmlrpc.XmlWriter#canonicalizeEncoding(String)
public static int getMaxThreads()
public static void setMaxThreads(int maxThreads)
public static void setDebug(boolean val)
public static void setKeepAlive(boolean val)
public static boolean getKeepAlive()
protected abstract void objectParsed(java.lang.Object what)
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in class org.xml.sax.HandlerBase
public void endElement(java.lang.String name) throws org.xml.sax.SAXException
endElement
in class org.xml.sax.HandlerBase
public void startElement(java.lang.String name, org.xml.sax.AttributeList atts) throws org.xml.sax.SAXException
startElement
in class org.xml.sax.HandlerBase
public void error(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
error
in class org.xml.sax.HandlerBase
e
- org.xml.sax.SAXException
- public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.HandlerBase
e
- org.xml.sax.SAXException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |