org.jivesoftware.xiff.data.rpc
class RPCExtension
Object
|
+--org.jivesoftware.xiff.data.XMLStanza
|
+--org.jivesoftware.xiff.data.Extension
|
+--org.jivesoftware.xiff.data.rpc.RPCExtension
Implemented Interfaces: IExtension, ISerializableclass RPCExtension extends Extension
Implements JEP-0009 for XML-RPC over XMPP.
- Author:Sean Treadway
- Since:2.0.0
Fields inherited from class org.jivesoftware.xiff.data.XMLStanza
Property Summary
The object containing the fault of the remote procedure call. This object could have any properties, as fault results are only structurally defined.
A common result from most RPC servers to describe a fault
A common result from most RPC servers to describe a fault
Check this if property if you wish to determine the remote procedure call produced an error. If the XMPP stanza never made it to the RPC service, then the error would be on the stanza object instead of this extension.
The result of this remote procedure call. It can contain elements of any type.
Method Summary
Place the remote call. This method serializes the remote procedure call to XML. The call will be made on the remote machine when the stanza containing this extension is sent to the server. If this extension is being returned, then check the result property instead.
Interface method, returning the namespace for this extension
Performs the registration of this extension into the extension registry.
Interface method, returning the namespace for this extension
Interface method, returning the namespace for this extension
Interface method, returning the namespace for this extension
Methods inherited from class org.jivesoftware.xiff.data.XMLStanza
Field Documentation
Property Documentation
fault
public fault: Object (read-only)
The object containing the fault of the remote procedure call. This object could have any properties, as fault results are only structurally defined.
faultCode
public faultCode: Number (read-only)
A common result from most RPC servers to describe a fault
faultString
public faultString: String (read-only)
A common result from most RPC servers to describe a fault
isFault
public isFault: Boolean (read-only)
Check this if property if you wish to determine the remote procedure call produced an error. If the XMPP stanza never made it to the RPC service, then the error would be on the stanza object instead of this extension.
- Value:True if the remote procedure call produced an error
result
public result: Array (read-only)
The result of this remote procedure call. It can contain elements of any type.
- Value:Array of demarshalled results from the remote procedure
Method Documentation
call
public function call (
methodName: String,
params: Array): Void
params: Array): Void
Place the remote call. This method serializes the remote procedure call to XML. The call will be made on the remote machine when the stanza containing this extension is sent to the server. If this extension is being returned, then check the result property instead.
- Parameters:
methodName The name of the remote procedure to call params A collection of parameters of any type - See also:
deserialize
public function deserialize (
node: XMLNode): Boolean
Interface method, returning the namespace for this extension
- Specified by:deserialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
node (XMLNode) The node that should be used as the data container. - See also:
enable
public static function enable (
): Void
Performs the registration of this extension into the extension registry.
getElementName
public function getElementName (
): String
Interface method, returning the namespace for this extension
- Specified by:getElementName in interface org.jivesoftware.xiff.data.IExtension
- See also:
getNS
public function getNS (
): String
Interface method, returning the namespace for this extension
- Specified by:getNS in interface org.jivesoftware.xiff.data.IExtension
- See also:
serialize
public function serialize (
parent: XMLNode): Boolean
Interface method, returning the namespace for this extension
- Specified by:serialize in interface org.jivesoftware.xiff.data.ISerializable
- Parameters:
parent parentNode (XMLNode) The container of the XML. - See also:
- RPCExtension.as, Last Modified: 3/10/2005 10:13:18 PM