com.nimkathana.swx.xmlrpc
Class XmlRpcClient

java.lang.Object
  extended bysuperwaba.ext.xplat.xml.XmlTokenizer
      extended bysuperwaba.ext.xplat.xml.XmlReader
          extended bycom.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)

Field Summary
protected  XmlRpcContentHandler xmlHandler
           
 
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
 

Field Detail

xmlHandler

protected XmlRpcContentHandler xmlHandler
Constructor Detail

XmlRpcClient

public XmlRpcClient(java.lang.String hostname,
                    int port,
                    java.lang.String uri)
             throws XmlRpcException
Parameters:
hostname - The server address to connect to
port - The port on the server to connect to
uri - The connecting uri. Defaults to "/RPC2"
Throws:
XmlRpcExpception - If the connection to the server was unsuccessful
XmlRpcException
Method Detail

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 call
params - 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 write
writer - The writer to write to


Copyright © 2004 Nimkathana Corp. All Rights Reserved.