Package rocks.xmpp.extensions.rpc
Class AbstractRpcManager
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.rpc.AbstractRpcManager
-
- All Implemented Interfaces:
ExtensionProtocol
,IQHandler
,DiscoverableInfo
,RpcManager
- Direct Known Subclasses:
ClientRpcManager
public abstract class AbstractRpcManager extends AbstractIQHandler implements RpcManager, ExtensionProtocol, DiscoverableInfo
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 Set<String>
getFeatures()
Gets the features.Set<Identity>
getIdentities()
Gets the identities.String
getNamespace()
The protocol's main namespace.boolean
isEnabled()
Indicates whether this protocol is enabled.void
setRpcHandler(RpcHandler rpcHandler)
Sets the RPC handler, which will handle RPCs.-
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
-
Methods inherited from interface rocks.xmpp.extensions.rpc.RpcManager
call
-
-
-
-
Method Detail
-
setRpcHandler
public void setRpcHandler(RpcHandler rpcHandler)
Description copied from interface:RpcManager
Sets the RPC handler, which will handle RPCs.- Specified by:
setRpcHandler
in interfaceRpcManager
- Parameters:
rpcHandler
- The RPC handler.
-
getNamespace
public final String getNamespace()
The protocol's main namespace. This is used to uniquely identify the extension protocol.- Specified by:
getNamespace
in interfaceExtensionProtocol
- Returns:
- "jabber:iq:rpc"
-
isEnabled
public final boolean isEnabled()
Description copied from interface:ExtensionProtocol
Indicates whether this protocol is enabled.- Specified by:
isEnabled
in interfaceExtensionProtocol
- Returns:
- true, if enabled; false if disabled.
-
getIdentities
public final Set<Identity> getIdentities()
Description copied from interface:DiscoverableInfo
Gets the identities.- Specified by:
getIdentities
in interfaceDiscoverableInfo
- Returns:
- The identities.
-
getFeatures
public final Set<String> getFeatures()
Description copied from interface:DiscoverableInfo
Gets the features.- Specified by:
getFeatures
in interfaceDiscoverableInfo
- Returns:
- The features.
-
-