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_DELAY
static SystemProperty<Boolean>
VERSION_QUERY_ENABLED
-
Constructor Summary
Constructors Constructor Description SoftwareVersionManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
anonymousSessionCreated(Session session)
Notification event indicating that an anonymous user has authenticated with the server.void
anonymousSessionDestroyed(Session session)
An authenticated session of an anonymous user was destroyed.void
resourceBound(Session session)
A session has finished resource binding.void
sessionCreated(Session session)
Notification event indicating that a user has authenticated with the server.void
sessionDestroyed(Session session)
An authenticated session of a non anonymous user was destroyed.void
start()
Starts the basic module.void
stop()
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 IllegalStateException
Description copied from class:BasicModule
Starts the basic module.
Inheriting classes that choose to override this method MUST call this start() method before accessing BasicModule resources.
- Specified by:
start
in interfaceModule
- Overrides:
start
in classBasicModule
- Throws:
IllegalStateException
- If start is called before initialize successfully returns
-
stop
public void stop()
Description copied from class:BasicModule
Stops the basic module.
Inheriting classes that choose to override this method MUST call this stop() method before accessing BasicModule resources.
- Specified by:
stop
in interfaceModule
- Overrides:
stop
in classBasicModule
-
sessionCreated
public void sessionCreated(Session session)
Description copied from interface:SessionEventListener
Notification event indicating that a user has authenticated with the server. The authenticated user is not an anonymous user.- Specified by:
sessionCreated
in interfaceSessionEventListener
- Parameters:
session
- the authenticated session of a non anonymous user.
-
sessionDestroyed
public void sessionDestroyed(Session session)
Description copied from interface:SessionEventListener
An authenticated session of a non anonymous user was destroyed.- Specified by:
sessionDestroyed
in interfaceSessionEventListener
- Parameters:
session
- the authenticated session of a non anonymous user.
-
anonymousSessionCreated
public void anonymousSessionCreated(Session session)
Description copied from interface:SessionEventListener
Notification event indicating that an anonymous user has authenticated with the server.- Specified by:
anonymousSessionCreated
in interfaceSessionEventListener
- Parameters:
session
- the authenticated session of an anonymous user.
-
anonymousSessionDestroyed
public void anonymousSessionDestroyed(Session session)
Description copied from interface:SessionEventListener
An authenticated session of an anonymous user was destroyed.- Specified by:
anonymousSessionDestroyed
in interfaceSessionEventListener
- Parameters:
session
- the authenticated session of an anonymous user.
-
resourceBound
public void resourceBound(Session session)
Description copied from interface:SessionEventListener
A session has finished resource binding.- Specified by:
resourceBound
in interfaceSessionEventListener
- Parameters:
session
- the session on which resource binding was performed.
-
-