org.apache.maven.wagon.events
Class SessionEvent
public class SessionEvent
SessionEvent is used for notifing SessionListeners about
occurences of various sistutation releated.
The session event is emitted by
Wagon objects when
- Before connection to the repository will be opened
- After connection to the repository was opened
- After wagon has logged-in to the repository
- After wagon has logged-off from the repository
- Before connection to the repository will be closed
- After connection to the repository was closed
$Id: SessionEvent.java 162476 2005-04-19 02:49:45Z brett $
SESSION_CLOSED
public static final int SESSION_CLOSED
A SESSION was closed.
SESSION_CONNECTION_REFUSED
public static final int SESSION_CONNECTION_REFUSED
A SESSION was refused.
SESSION_DISCONNECTED
public static final int SESSION_DISCONNECTED
A SESSION was disconnected (not currently used).
SESSION_DISCONNECTING
public static final int SESSION_DISCONNECTING
A SESSION is about to be disconnected.
SESSION_ERROR_OCCURRED
public static final int SESSION_ERROR_OCCURRED
A SESSION was opened.
SESSION_LOGGED_IN
public static final int SESSION_LOGGED_IN
A SESSION was opened.
SESSION_LOGGED_OFF
public static final int SESSION_LOGGED_OFF
A SESSION was opened.
SESSION_OPENED
public static final int SESSION_OPENED
A SESSION was opened.
SESSION_OPENING
public static final int SESSION_OPENING
A SESSION is about to be opened.
SessionEvent
public SessionEvent(Wagon wagon,
Exception exception) Creates new instance of SessionEvent. Sets event type to SESSION_ERROR_OCCURRED
wagon - Wagon object which created this eventexception - the exception
SessionEvent
public SessionEvent(Wagon wagon,
int eventType) Creates new instance of SessionEvent
wagon - Wagon object which created this eventeventType - the type of the event
getEventType
public int getEventType()
getException
public Exception getException()
setEventType
public void setEventType(int eventType)
eventType - The eventType to set.
setException
public void setException(Exception exception)
exception - The exception to set.