Class SoftwareVersionManager
- java.lang.Object
-
- org.jivesoftware.openfire.container.BasicModule
-
- org.jivesoftware.openfire.session.SoftwareVersionManager
-
- All Implemented Interfaces:
Module,SessionEventListener
public class SoftwareVersionManager extends BasicModule implements SessionEventListener
A SoftwareVersionManager is the main responsible for sending query to remote entity and Obtain software information from the remote entity using XEP-0092 .- Author:
- Manasse Ngudia
-
-
Field Summary
Fields Modifier and Type Field Description static SystemProperty<Duration>VERSION_QUERY_DELAYstatic SystemProperty<Boolean>VERSION_QUERY_ENABLED
-
Constructor Summary
Constructors Constructor Description SoftwareVersionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanonymousSessionCreated(Session session)Notification event indicating that an anonymous user has authenticated with the server.voidanonymousSessionDestroyed(Session session)An authenticated session of an anonymous user was destroyed.voidresourceBound(Session session)A session has finished resource binding.voidsessionCreated(Session session)Notification event indicating that a user has authenticated with the server.voidsessionDestroyed(Session session)An authenticated session of a non anonymous user was destroyed.voidstart()Starts the basic module.voidstop()Stops the basic module.-
Methods inherited from class org.jivesoftware.openfire.container.BasicModule
destroy, getName, initialize
-
-
-
-
Field Detail
-
VERSION_QUERY_ENABLED
public static final SystemProperty<Boolean> VERSION_QUERY_ENABLED
-
VERSION_QUERY_DELAY
public static final SystemProperty<Duration> VERSION_QUERY_DELAY
-
-
Method Detail
-
start
public void start() throws IllegalStateExceptionDescription copied from class:BasicModuleStarts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
- Specified by:
startin interfaceModule- Overrides:
startin classBasicModule- Throws:
IllegalStateException- If start is called before initialize successfully returns
-
stop
public void stop()
Description copied from class:BasicModuleStops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
- Specified by:
stopin interfaceModule- Overrides:
stopin classBasicModule
-
sessionCreated
public void sessionCreated(Session session)
Description copied from interface:SessionEventListenerNotification event indicating that a user has authenticated with the server. The authenticated user is not an anonymous user.- Specified by:
sessionCreatedin interfaceSessionEventListener- Parameters:
session- the authenticated session of a non anonymous user.
-
sessionDestroyed
public void sessionDestroyed(Session session)
Description copied from interface:SessionEventListenerAn authenticated session of a non anonymous user was destroyed.- Specified by:
sessionDestroyedin interfaceSessionEventListener- Parameters:
session- the authenticated session of a non anonymous user.
-
anonymousSessionCreated
public void anonymousSessionCreated(Session session)
Description copied from interface:SessionEventListenerNotification event indicating that an anonymous user has authenticated with the server.- Specified by:
anonymousSessionCreatedin interfaceSessionEventListener- Parameters:
session- the authenticated session of an anonymous user.
-
anonymousSessionDestroyed
public void anonymousSessionDestroyed(Session session)
Description copied from interface:SessionEventListenerAn authenticated session of an anonymous user was destroyed.- Specified by:
anonymousSessionDestroyedin interfaceSessionEventListener- Parameters:
session- the authenticated session of an anonymous user.
-
resourceBound
public void resourceBound(Session session)
Description copied from interface:SessionEventListenerA session has finished resource binding.- Specified by:
resourceBoundin interfaceSessionEventListener- Parameters:
session- the session on which resource binding was performed.
-
-