Interface SessionListenerContainer

All Known Implementing Classes:
SessionListenerContainerImpl

public interface SessionListenerContainer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener)
    Add a SessionListener to be notified
    void
    Notify SessionListeners that creation of the session's connection was refused
    void
    Notify SessionListeners that a session has been disconnected successfully
    void
    Notify SessionListeners that a session is being disconnected
    void
    Notify SessionListeners that an error occurred during while the session was in use
    void
    Notify SessionListeners that the session was logged in successfully
    void
    Notify SessionListeners that the session was logged off successfully
    void
    Notify SessionListeners that a session has been opened successfully
    void
    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 Details

    • 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