Package rocks.xmpp.extensions.time
Class EntityTimeManager
- java.lang.Object
-
- rocks.xmpp.core.stanza.AbstractIQHandler
-
- rocks.xmpp.extensions.time.handler.EntityTimeHandler
-
- rocks.xmpp.extensions.time.EntityTimeManager
-
- All Implemented Interfaces:
ExtensionProtocol
,IQHandler
,DiscoverableInfo
public final class EntityTimeManager extends EntityTimeHandler
This manager implements XEP-0202: Entity Time.It automatically responds to entity time requests, with the system's current date and timezone information and allows to retrieve another entity's time.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncResult<OffsetDateTime>
getEntityTime(Jid jid)
Gets the time information (e.g. time zone) of another XMPP entity.-
Methods inherited from class rocks.xmpp.extensions.time.handler.EntityTimeHandler
getFeatures, getNamespace, isEnabled
-
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
-
getEntityTime
public AsyncResult<OffsetDateTime> getEntityTime(Jid jid)
Gets the time information (e.g. time zone) of another XMPP entity.- Parameters:
jid
- The entity's JID.- Returns:
- The async result with the entity time or null if this protocol is not supported by the entity.
-
-