public class XmlRpcClient extends XmlReader
Modifier and Type | Field and Description |
---|---|
protected XmlRpcContentHandler |
xmlHandler |
tagName, tagNameHashId
Constructor and Description |
---|
XmlRpcClient(StandardHttpClient httpClient) |
XmlRpcClient(java.lang.String hostname,
int port,
java.lang.String uri) |
XmlRpcClient(java.lang.String hostname,
int port,
java.lang.String uri,
boolean doCompression)
Creates a xmlrpc client with compression if the given flag is true.
|
XmlRpcClient(java.lang.String hostname,
int port,
java.lang.String uri,
int openTimeout,
int readTimeout,
int writeTimeout,
boolean doCompression) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
execute(java.lang.String method,
Vector params)
Generates an XML-RPC request and sends it to the server.
|
protected int |
getTagCode(byte[] b,
int offset,
int count)
Method to compute the tag code identifying a tag name.
|
protected void |
writeObject(java.lang.Object what)
Writes the XML representation of a supported Java object to the XML writer.
|
foundAttributeName, foundAttributeValue, foundCharacter, foundCharacterData, foundComment, foundDeclaration, foundEndEmptyTag, foundEndOfInput, foundEndTagName, foundStartTagName, getContentHandler, parse, parse, parse, parse, setAttributeListFilter, setCaseInsensitive, setContentHandler, setNewlineSignificant
disableReferenceResolution, foundInvalidData, foundProcessingInstruction, foundReference, foundStartOfInput, getAbsoluteOffset, hashCode, isDataCDATA, resolveCharacterReference, setCdataContents, setStrictlyXml, tokenize, tokenize, tokenize, tokenize
protected XmlRpcContentHandler xmlHandler
public XmlRpcClient(java.lang.String hostname, int port, java.lang.String uri) throws XmlRpcException, UnknownHostException
hostname
- The server address to connect toport
- The port on the server to connect touri
- The connecting URI. Defaults to "/RPC2"XmlRpcException
- If the connection to the server was unsuccessfulUnknownHostException
public XmlRpcClient(java.lang.String hostname, int port, java.lang.String uri, boolean doCompression) throws XmlRpcException, UnknownHostException
XmlRpcException
UnknownHostException
public XmlRpcClient(java.lang.String hostname, int port, java.lang.String uri, int openTimeout, int readTimeout, int writeTimeout, boolean doCompression) throws XmlRpcException, UnknownHostException
XmlRpcException
UnknownHostException
public XmlRpcClient(StandardHttpClient httpClient) throws XmlRpcException, UnknownHostException
XmlRpcException
UnknownHostException
public java.lang.Object execute(java.lang.String method, Vector params) throws XmlRpcException, IOException
method
- The remote procedure to callparams
- The parameters to the corresponding method
XmlRpcException
- If the remote procedure call was unsuccessfulIOException
protected int getTagCode(byte[] b, int offset, int count)
XmlReader
This is the value which is passed to ContentHandler's for reporting a tag name. Derived class may override it. Impl Note: Transforming to uppercase takes into account that the bytes are in the range [0-9A-Za-z]: (ch >= 'a') means "ch is a lower case letter". Also, we *do* know that the count is > 0.
getTagCode
in class XmlReader
b
- byte array containing the bytes to be hashedoffset
- position of the first byte in the arraycount
- number of bytes to be hashedprotected void writeObject(java.lang.Object what)
what
- The object to write