com.nimkathana.swx.xmlrpc
Class XmlRpcClient
java.lang.Object
superwaba.ext.xplat.xml.XmlTokenizer
superwaba.ext.xplat.xml.XmlReader
com.nimkathana.swx.xmlrpc.XmlRpcClient
- Direct Known Subclasses:
- SecureXmlRpcClient
- public class XmlRpcClient
- extends superwaba.ext.xplat.xml.XmlReader
Handles XML-RPCs to a server
- Version:
- April 2004
- Author:
- Maintained by Nimkathana
(www.nimkathana.com), Original by IOP GmbH
(www.iop.de)
Fields inherited from class superwaba.ext.xplat.xml.XmlReader |
converter, tagNameHashId |
Constructor Summary |
XmlRpcClient(java.lang.String hostname,
int port,
java.lang.String uri)
|
Method Summary |
java.lang.Object |
execute(java.lang.String method,
waba.util.Vector params)
Generates an XML-RPC request and sends it to the server. |
protected int |
getTagCode(byte[] b,
int offset,
int count)
|
protected void |
writeObject(java.lang.Object what,
SimpleXmlWriter writer)
Writes the XML representation of a supported Java object to the XML writer. |
Methods inherited from class superwaba.ext.xplat.xml.XmlReader |
foundAttributeName, foundAttributeValue, foundCharacter, foundCharacterData, foundComment, foundEndEmptyTag, foundEndOfInput, foundEndTagName, foundStartTagName, getContentHandler, parse, parse, parse, parse, setAttributeListFilter, setContentHandler, setNewlineSignificant |
Methods inherited from class superwaba.ext.xplat.xml.XmlTokenizer |
disableReferenceResolution, foundDeclaration, foundInvalidData, foundProcessingInstruction, foundReference, foundStartOfInput, getAbsoluteOffset, isDataCDATA, resolveCharacterReference, setCdataContents, setStrictlyXml, tokenize, tokenize, tokenize, tokenize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlHandler
protected XmlRpcContentHandler xmlHandler
XmlRpcClient
public XmlRpcClient(java.lang.String hostname,
int port,
java.lang.String uri)
throws XmlRpcException
- Parameters:
hostname
- The server address to connect toport
- The port on the server to connect touri
- The connecting uri. Defaults to "/RPC2"
- Throws:
XmlRpcExpception
- If the connection to the server was unsuccessful
XmlRpcException
execute
public java.lang.Object execute(java.lang.String method,
waba.util.Vector params)
throws XmlRpcException
- Generates an XML-RPC request and sends it to the server.
Parses the result and returns the corresponding Java object.
- Parameters:
method
- The remote procedure to callparams
- The parameters to the corresponding method
- Throws:
XmlRpcException
- If the remote procedure call was unsuccessful
getTagCode
protected int getTagCode(byte[] b,
int offset,
int count)
writeObject
protected void writeObject(java.lang.Object what,
SimpleXmlWriter writer)
- Writes the XML representation of a supported Java object to the XML writer.
- Parameters:
what
- The object to writewriter
- The writer to write to
Copyright © 2004 Nimkathana Corp. All Rights Reserved.