org.apache.maven.wagon.events
public final class SessionEventSupport extends Object
Version: $Id: SessionEventSupport.java 162476 2005-04-19 02:49:45Z brett $
Field Summary | |
---|---|
List | listeners
registred listeners |
Method Summary | |
---|---|
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.
|
void | fireDebug(String message)
Dispatches the given debug message
to all registred listeners (calls method debug on all of them}.
|
void | fireSessionConnectionRefused(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionConnectionRefused on all of them}.
|
void | fireSessionDisconnected(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionDisconnected on all of them}.
|
void | fireSessionDisconnecting(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionDisconnecting } on all of them}.
|
void | fireSessionError(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionConnectionRefused on all of them.
|
void | fireSessionLoggedIn(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionLoggedIn on all of them}.
|
void | fireSessionLoggedOff(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionLoggedOff on all of them}.
|
void | fireSessionOpened(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionOpened on all of them}.
|
void | fireSessionOpening(SessionEvent sessionEvent)
Dispatches the given SessionEvent
to all registred listeners (calls method sessionOpening on all of them}.
|
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
|
void | removeSessionListener(SessionListener listener)
Removes the session listener from the collection of listeners so
it no longer receives session events.
|
Wagon
object.
null
, no exception is thrown and no action is performed
Parameters: listener the transfer listener
See Also: removeSessionListener TransferListener
Parameters: message the debug message which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionConnectionRefused on all of them}.
The Event should be of type SESSION_CONNECTION_REFUSED
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionDisconnected on all of them}.
The Event should be of type SESSION_DISCONNECTED
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionDisconnecting } on all of them}.
The Event should be of type SESSION_DISCONNECTING
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionConnectionRefused on all of them.
The Event should be of type SESSION_ERROR_OCCURRED and it is expected that
getException method will return not null value
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionLoggedIn on all of them}.
The Event should be of type SESSION_LOGGED_IN
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionLoggedOff on all of them}.
The Event should be of type SESSION_LOGGED_OFF
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionOpened on all of them}.
The Event should be of type SESSION_OPENED
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
SessionEvent
to all registred listeners (calls method sessionOpening on all of them}.
The Event should be of type SESSION_OPENING
Parameters: sessionEvent the SessionEvent which will be dispached to listeners
Parameters: listener the session listener
Returns: true
if given listner was added to the collection of listeners
false
otherwise
See Also: SessionListener addSessionListener
null
or specified listener was not added
to this SessionEventSupport
object
no exception is thrown and no action is performed
Parameters: listener the session listener
See Also: addSessionListener