Interface SessionListenerContainer
- All Known Implementing Classes:
SessionListenerContainerImpl
public interface SessionListenerContainer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Add aSessionListenerto be notifiedvoidNotifySessionListeners that creation of the session's connection was refusedvoidNotifySessionListeners that a session has been disconnected successfullyvoidNotifySessionListeners that a session is being disconnectedvoidfireSessionError(Exception exception) NotifySessionListeners that an error occurred during while the session was in usevoidNotifySessionListeners that the session was logged in successfullyvoidNotifySessionListeners that the session was logged off successfullyvoidNotifySessionListeners that a session has been opened successfullyvoidNotifySessionListeners that a session is being openedbooleanhasSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Returns whether aSessionListeneris already in the collection ofSessionListeners to be notifiedvoidremoveSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Remove aSessionListenerso that it is no longer notified
-
Method Details
-
addSessionListener
void addSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Add aSessionListenerto be notified- Parameters:
sessionListener- TheSessionListenerto be notified
-
removeSessionListener
void removeSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Remove aSessionListenerso that it is no longer notified- Parameters:
sessionListener- TheSessionListenerthat should no longer be notified
-
hasSessionListener
boolean hasSessionListener(org.apache.maven.wagon.events.SessionListener sessionListener) Returns whether aSessionListeneris already in the collection ofSessionListeners to be notified- Parameters:
sessionListener- TheSessionListenerto look for- Returns:
trueif theSessionListeneris already in the collection ofSessionListeners to be notified, otherwisefalse
-
fireSessionOpening
void fireSessionOpening()NotifySessionListeners that a session is being opened- See Also:
-
SessionEvent.SESSION_OPENING
-
fireSessionOpened
void fireSessionOpened()NotifySessionListeners that a session has been opened successfully- See Also:
-
SessionEvent.SESSION_OPENED
-
fireSessionDisconnecting
void fireSessionDisconnecting()NotifySessionListeners that a session is being disconnected- See Also:
-
SessionEvent.SESSION_DISCONNECTING
-
fireSessionDisconnected
void fireSessionDisconnected()NotifySessionListeners that a session has been disconnected successfully- See Also:
-
SessionEvent.SESSION_DISCONNECTED
-
fireSessionConnectionRefused
void fireSessionConnectionRefused()NotifySessionListeners that creation of the session's connection was refused- See Also:
-
SessionEvent.SESSION_CONNECTION_REFUSED
-
fireSessionLoggedIn
void fireSessionLoggedIn()NotifySessionListeners that the session was logged in successfully- See Also:
-
SessionEvent.SESSION_LOGGED_IN
-
fireSessionLoggedOff
void fireSessionLoggedOff()NotifySessionListeners that the session was logged off successfully- See Also:
-
SessionEvent.SESSION_LOGGED_OFF
-
fireSessionError
NotifySessionListeners that an error occurred during while the session was in use- Parameters:
exception- The error that occurred
-