public final class SessionEventSupport extends Object
| Constructor and Description |
|---|
SessionEventSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSessionListener(SessionListener listener)
Adds the listener to the collection of listeners
who will be notified when any session event occurs
in this
Wagon object. |
void |
fireDebug(String message)
Dispatches the given debug message
to all registered listeners (calls method
SessionListener.debug(String) on all of them}. |
void |
fireSessionConnectionRefused(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionConnectionRefused(SessionEvent) on all
of them}. |
void |
fireSessionDisconnected(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionDisconnected(SessionEvent) on all of
them}. |
void |
fireSessionDisconnecting(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionDisconnecting(SessionEvent) } on all of
them}. |
void |
fireSessionError(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionConnectionRefused(SessionEvent) on all
of them}. |
void |
fireSessionLoggedIn(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionLoggedIn(SessionEvent) on all of them}. |
void |
fireSessionLoggedOff(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionLoggedOff(SessionEvent) on all of
them}. |
void |
fireSessionOpened(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionOpened(SessionEvent) on all of them}. |
void |
fireSessionOpening(SessionEvent sessionEvent)
Dispatches the given
SessionEvent
to all registered listeners (calls method SessionListener.sessionOpening(SessionEvent) 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 notified when an session event occurs
|
void |
removeSessionListener(SessionListener listener)
Removes the session listener from the collection of listeners so
it no longer receives session events.
|
public SessionEventSupport()
public void addSessionListener(SessionListener listener)
Wagon object.
null, no exception is thrown and no action is performedlistener - the transfer listenerremoveSessionListener(SessionListener),
TransferListenerpublic void removeSessionListener(SessionListener listener)
null or specified listener was not added
to this SessionEventSupport object
no exception is thrown and no action is performedlistener - the session listeneraddSessionListener(org.apache.maven.wagon.events.SessionListener)public boolean hasSessionListener(SessionListener listener)
listener - the session listenertrue
if given listener was added to the collection of listeners
false otherwiseSessionListener,
addSessionListener(org.apache.maven.wagon.events.SessionListener)public void fireSessionDisconnected(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionDisconnected(SessionEvent) on all of
them}. The Event should be of type SessionEvent.SESSION_DISCONNECTEDsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionDisconnecting(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionDisconnecting(SessionEvent) } on all of
them}. The Event should be of type SessionEvent.SESSION_DISCONNECTINGsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionLoggedIn(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionLoggedIn(SessionEvent) on all of them}.
The Event should be of type SessionEvent.SESSION_LOGGED_INsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionLoggedOff(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionLoggedOff(SessionEvent) on all of
them}. The Event should be of type SessionEvent.SESSION_LOGGED_OFFsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionOpened(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionOpened(SessionEvent) on all of them}.
The Event should be of type SessionEvent.SESSION_OPENEDsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionOpening(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionOpening(SessionEvent) on all of them}.
The Event should be of type SessionEvent.SESSION_OPENINGsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireSessionConnectionRefused(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionConnectionRefused(SessionEvent) on all
of them}. The Event should be of type SessionEvent.SESSION_CONNECTION_REFUSEDsessionEvent - the SessionEvent which will be dispatched to listenerspublic void fireDebug(String message)
SessionListener.debug(String) on all of them}.message - the debug message which will be dispatched to listenerspublic void fireSessionError(SessionEvent sessionEvent)
SessionEvent
to all registered listeners (calls method SessionListener.sessionConnectionRefused(SessionEvent) on all
of them}. The Event should be of type SessionEvent.SESSION_ERROR_OCCURRED and it is expected that
SessionEvent.getException() method will return not null valuesessionEvent - the SessionEvent which will be dispatched to listenersCopyright © 2003–2019 The Apache Software Foundation. All rights reserved.