Class 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
    • Constructor Detail

      • SoftwareVersionManager

        public SoftwareVersionManager()
    • 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 interface Module
        Overrides:
        start in class BasicModule
        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 interface Module
        Overrides:
        stop in class BasicModule
      • 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 interface SessionEventListener
        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 interface SessionEventListener
        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 interface SessionEventListener
        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 interface SessionEventListener
        Parameters:
        session - the session on which resource binding was performed.