public final class RpcManager extends ExtensionManager
By default this manager is disabled. If you want to support RPC (i.e. handle incoming calls), enable it and set a RPC handler, which allows you to handle incoming calls.
features, xmppSession| Modifier and Type | Method and Description |
|---|---|
Value |
call(rocks.xmpp.core.Jid jid,
String methodName,
Value... parameters)
Calls a remote procedure.
|
void |
setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.
|
setEnabledpublic Value call(rocks.xmpp.core.Jid jid, String methodName, Value... parameters) throws rocks.xmpp.core.XmppException, RpcException
jid - The JID, which will receive the RPC.methodName - The method name.parameters - The parameters.NoResponseException - If the entity did not respond.rocks.xmpp.core.stanza.model.StanzaException - If the RPC returned with an XMPP stanza error.RpcException - If the RPC returned with an application-level error (<fault/> element).rocks.xmpp.core.XmppExceptionpublic void setRpcHandler(RpcHandler rpcHandler)
rpcHandler - The RPC handler.Copyright © 2014 XMPP.rocks. All rights reserved.