Class EntityTimeHandler
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.time.handler.EntityTimeHandler
-
- All Implemented Interfaces:
ExtensionProtocol,IQHandler,DiscoverableInfo
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()StringgetNamespace()booleanisEnabled()-
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()
- Specified by:
getNamespacein interfaceExtensionProtocol- Returns:
- "urn:xmpp:time"
-
isEnabled
public final boolean isEnabled()
- Specified by:
isEnabledin interfaceExtensionProtocol
-
getFeatures
public final Set<String> getFeatures()
- Specified by:
getFeaturesin interfaceDiscoverableInfo
-
-