Class EntityTimeHandler
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.time.handler.EntityTimeHandler
-
- All Implemented Interfaces:
ExtensionProtocol,IQHandler,DiscoverableInfo
- Direct Known Subclasses:
EntityTimeManager
public class EntityTimeHandler extends AbstractIQHandler implements ExtensionProtocol, DiscoverableInfo
Handles an time request by returning the current time.
-
-
Constructor Summary
Constructors Constructor Description EntityTimeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getFeatures()Gets the features.StringgetNamespace()The protocol's main namespace.booleanisEnabled()Indicates whether this protocol is enabled.-
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, getIdentities
-
-
-
-
Method Detail
-
getNamespace
public final String getNamespace()
The protocol's main namespace. This is used to uniquely identify the extension protocol.- Specified by:
getNamespacein interfaceExtensionProtocol- Returns:
- "urn:xmpp:time"
-
isEnabled
public final boolean isEnabled()
Description copied from interface:ExtensionProtocolIndicates whether this protocol is enabled.- Specified by:
isEnabledin interfaceExtensionProtocol- Returns:
- true, if enabled; false if disabled.
-
getFeatures
public final Set<String> getFeatures()
Description copied from interface:DiscoverableInfoGets the features.- Specified by:
getFeaturesin interfaceDiscoverableInfo- Returns:
- The features.
-
-