org.apache.maven.wagon.events
Class SessionEventSupport
java.lang.Object
org.apache.maven.wagon.events.SessionEventSupport
public final class SessionEventSupport
extends java.lang.Object
The class allows registration and deregistration of session listeners
$Id: SessionEventSupport.java 162476 2005-04-19 02:49:45Z brett $
addSessionListener
public void addSessionListener(SessionListener listener)
Adds the listener to the collection of listeners
who will be notifed when any session event occurs
in this Wagon
object.
If listener is null
, no exception is thrown and no action is performed
listener
- the transfer listener
fireDebug
public void fireDebug(String message)
message
- the debug message which will be dispached to listeners
fireSessionConnectionRefused
public void fireSessionConnectionRefused(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionDisconnected
public void fireSessionDisconnected(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionDisconnecting
public void fireSessionDisconnecting(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionError
public void fireSessionError(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionLoggedIn
public void fireSessionLoggedIn(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionLoggedOff
public void fireSessionLoggedOff(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionOpened
public void fireSessionOpened(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
fireSessionOpening
public void fireSessionOpening(SessionEvent sessionEvent)
sessionEvent
- the SessionEvent which will be dispached to listeners
hasSessionListener
public boolean hasSessionListener(SessionListener listener)
Returns whether the specified instance of session
listener was added to the collection of listeners
who will be notifed when an seesion event occurs
listener
- the session listener
true
if given listner was added to the collection of listeners
false
otherwise
removeSessionListener
public void removeSessionListener(SessionListener listener)
Removes the session listener from the collection of listeners so
it no longer receives session events.
If listener is null
or specified listener was not added
to this SessionEventSupport
object
no exception is thrown and no action is performed
listener
- the session listener