|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.wagon.events.SessionEventSupport
public final class SessionEventSupport
The class allows registration and deregistration of session listeners
| Constructor Summary | |
|---|---|
SessionEventSupport()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SessionEventSupport()
| Method Detail |
|---|
public void addSessionListener(SessionListener listener)
Wagon object.
null, no exception is thrown and no action is performed
listener - 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 performed
listener - the session listeneraddSessionListener(org.apache.maven.wagon.events.SessionListener)public boolean hasSessionListener(SessionListener listener)
listener - the session listener
true
if given listener was added to the collection of listeners
false otherwise- See Also:
SessionListener,
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_DISCONNECTED
sessionEvent - 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_DISCONNECTING
sessionEvent - 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_IN
sessionEvent - 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_OFF
sessionEvent - 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_OPENED
sessionEvent - 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_OPENING
sessionEvent - 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_REFUSED
sessionEvent - 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 value
sessionEvent - the SessionEvent which will be dispatched to listeners
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||