Package org.jivesoftware.smackx.time
Class EntityTimeManager
- java.lang.Object
-
- org.jivesoftware.smack.Manager
-
- org.jivesoftware.smackx.time.EntityTimeManager
-
public final class EntityTimeManager extends Manager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()voidenable()static EntityTimeManagergetInstanceFor(XMPPConnection connection)TimegetTime(Jid jid)booleanisTimeSupported(Jid jid)static voidsetAutoEnable(boolean autoEnable)-
Methods inherited from class org.jivesoftware.smack.Manager
connection, getAuthenticatedConnectionOrThrow, schedule, schedule, scheduleBlocking
-
-
-
-
Method Detail
-
setAutoEnable
public static void setAutoEnable(boolean autoEnable)
-
getInstanceFor
public static EntityTimeManager getInstanceFor(XMPPConnection connection)
-
enable
public void enable()
-
disable
public void disable()
-
isTimeSupported
public boolean isTimeSupported(Jid jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedException
-
getTime
public Time getTime(Jid jid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
- Throws:
SmackException.NoResponseExceptionXMPPException.XMPPErrorExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedException
-
-