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