Interface SessionListener

  • All Known Implementing Classes:
    Debug

    public interface SessionListener
    Interface for classes which wants to receive and respond to any session update events.
    Author:
    Michal Maczka
    • Method Detail

      • sessionOpening

        void sessionOpening​(SessionEvent sessionEvent)
        This method will be called when Wagon is about to open connection to the repository. The type of the event should be set to SessionEvent.SESSION_OPENING
        Parameters:
        sessionEvent - the session event
      • sessionOpened

        void sessionOpened​(SessionEvent sessionEvent)
        This method will be called when Wagon has successfully connected to to the repository. The type of the event should be set to SessionEvent.SESSION_OPENED
        Parameters:
        sessionEvent - the session event
      • sessionDisconnecting

        void sessionDisconnecting​(SessionEvent sessionEvent)
        This method will be called when Wagon has closed connection to to the repository. The type of the event should be set to SessionEvent.SESSION_DISCONNECTING
        Parameters:
        sessionEvent - the session event
      • sessionDisconnected

        void sessionDisconnected​(SessionEvent sessionEvent)
        This method will be called when Wagon has closed connection to the repository. The type of the event should be set to SessionEvent.SESSION_DISCONNECTED
        Parameters:
        sessionEvent - the session event
      • sessionConnectionRefused

        void sessionConnectionRefused​(SessionEvent sessionEvent)
        This method will be called when Wagon when connection to the repository was refused.

        The type of the event should be set to SessionEvent.SESSION_CONNECTION_REFUSED

        Parameters:
        sessionEvent - the session event
      • sessionLoggedIn

        void sessionLoggedIn​(SessionEvent sessionEvent)
        This method will be called by Wagon when Wagon managed to login to the repository.
        Parameters:
        sessionEvent - the session event
      • sessionLoggedOff

        void sessionLoggedOff​(SessionEvent sessionEvent)
        This method will be called by Wagon has logged off from the repository.

        The type of the event should be set to SessionEvent.SESSION_LOGGED_OFF

        Parameters:
        sessionEvent - the session event
      • sessionError

        void sessionError​(SessionEvent sessionEvent)
        This method will be called by Wagon when an error occurred.

        The type of the event should be set to SessionEvent.SESSION_ERROR_OCCURRED

        Parameters:
        sessionEvent - the session event
      • debug

        void debug​(java.lang.String message)
        This method allows to send arbitrary debug messages.
        Parameters:
        message - the debug message