Interface SessionListenerSupport

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
      Add a SessionListener to be notified
      void fireSessionConnectionRefused()
      Notify SessionListeners that creation of the session's connection was refused
      void fireSessionDisconnected()
      Notify SessionListeners that a session has been disconnected successfully
      void fireSessionDisconnecting()
      Notify SessionListeners that a session is being disconnected
      void fireSessionError​(Exception exception)
      Notify SessionListeners that an error occurred during while the session was in use
      void fireSessionLoggedIn()
      Notify SessionListeners that the session was logged in successfully
      void fireSessionLoggedOff()
      Notify SessionListeners that the session was logged off successfully
      void fireSessionOpened()
      Notify SessionListeners that a session has been opened successfully
      void fireSessionOpening()
      Notify SessionListeners that a session is being opened
      boolean hasSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
      Returns whether a SessionListener is already in the collection of SessionListeners to be notified
      void removeSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
      Remove a SessionListener so that it is no longer notified
    • Method Detail

      • addSessionListener

        void addSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
        Add a SessionListener to be notified
        Parameters:
        sessionListener - The SessionListener to be notified
      • removeSessionListener

        void removeSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
        Remove a SessionListener so that it is no longer notified
        Parameters:
        sessionListener - The SessionListener that should no longer be notified
      • hasSessionListener

        boolean hasSessionListener​(org.apache.maven.wagon.events.SessionListener sessionListener)
        Returns whether a SessionListener is already in the collection of SessionListeners to be notified
        Parameters:
        sessionListener - The SessionListener to look for
        Returns:
        true if the SessionListener is already in the collection of SessionListeners to be notified, otherwise false
      • fireSessionOpening

        void fireSessionOpening()
        Notify SessionListeners that a session is being opened
        See Also:
        SessionEvent.SESSION_OPENING
      • fireSessionOpened

        void fireSessionOpened()
        Notify SessionListeners that a session has been opened successfully
        See Also:
        SessionEvent.SESSION_OPENED
      • fireSessionDisconnecting

        void fireSessionDisconnecting()
        Notify SessionListeners that a session is being disconnected
        See Also:
        SessionEvent.SESSION_DISCONNECTING
      • fireSessionDisconnected

        void fireSessionDisconnected()
        Notify SessionListeners that a session has been disconnected successfully
        See Also:
        SessionEvent.SESSION_DISCONNECTED
      • fireSessionConnectionRefused

        void fireSessionConnectionRefused()
        Notify SessionListeners that creation of the session's connection was refused
        See Also:
        SessionEvent.SESSION_CONNECTION_REFUSED
      • fireSessionLoggedIn

        void fireSessionLoggedIn()
        Notify SessionListeners that the session was logged in successfully
        See Also:
        SessionEvent.SESSION_LOGGED_IN
      • fireSessionLoggedOff

        void fireSessionLoggedOff()
        Notify SessionListeners that the session was logged off successfully
        See Also:
        SessionEvent.SESSION_LOGGED_OFF
      • fireSessionError

        void fireSessionError​(Exception exception)
        Notify SessionListeners that an error occurred during while the session was in use
        Parameters:
        exception - The error that occurred