Package rocks.xmpp.extensions.rpc.client
Class ClientRpcManager
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.rpc.AbstractRpcManager
-
- rocks.xmpp.extensions.rpc.client.ClientRpcManager
-
- All Implemented Interfaces:
ExtensionProtocol
,IQHandler
,DiscoverableInfo
,RpcManager
public final class ClientRpcManager extends AbstractRpcManager
This manager allows you to call remote procedures and handle inbound calls, if enabled.By default this manager is disabled. If you want to support RPC (i.e. handle inbound calls) set a RPC handler, which allows you to handle inbound calls.
- See Also:
- XEP-0009: Jabber-RPC
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncResult<Value>
call(Jid jid, String methodName, Value... parameters)
Calls a remote procedure.void
setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.-
Methods inherited from class rocks.xmpp.extensions.rpc.AbstractRpcManager
getFeatures, getIdentities, getNamespace, isEnabled
-
Methods inherited from class rocks.xmpp.core.stanza.AbstractIQHandler
getPayloadClass, handleRequest
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface rocks.xmpp.extensions.disco.model.info.DiscoverableInfo
getExtensions
-
-
-
-
Method Detail
-
setRpcHandler
public final void setRpcHandler(RpcHandler rpcHandler)
Description copied from interface:RpcManager
Sets the RPC handler, which will handle RPCs.- Specified by:
setRpcHandler
in interfaceRpcManager
- Overrides:
setRpcHandler
in classAbstractRpcManager
- Parameters:
rpcHandler
- The RPC handler.
-
call
public AsyncResult<Value> call(Jid jid, String methodName, Value... parameters)
Description copied from interface:RpcManager
Calls a remote procedure.- Parameters:
jid
- The JID, which will receive the RPC.methodName
- The method name.parameters
- The parameters.- Returns:
- The async result with the returned value.
-
-