|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject org.apache.maven.wagon.events.WagonEvent org.apache.maven.wagon.events.SessionEvent
public class SessionEvent
SessionEvent is used for notifying SessionListeners about occurrences of various situations related.
The session event is emitted byWagon
objects when
Field Summary | |
---|---|
static int |
SESSION_CLOSED
A SESSION was closed. |
static int |
SESSION_CONNECTION_REFUSED
A SESSION was refused. |
static int |
SESSION_DISCONNECTED
A SESSION was disconnected (not currently used). |
static int |
SESSION_DISCONNECTING
A SESSION is about to be disconnected. |
static int |
SESSION_ERROR_OCCURRED
A SESSION was opened. |
static int |
SESSION_LOGGED_IN
A SESSION was opened. |
static int |
SESSION_LOGGED_OFF
A SESSION was opened. |
static int |
SESSION_OPENED
A SESSION was opened. |
static int |
SESSION_OPENING
A SESSION is about to be opened. |
Fields inherited from class org.apache.maven.wagon.events.WagonEvent |
---|
timestamp |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
SessionEvent(Wagon wagon,
Exception exception)
Creates new instance of SessionEvent. |
|
SessionEvent(Wagon wagon,
int eventType)
Creates new instance of SessionEvent |
Method Summary | |
---|---|
int |
getEventType()
|
Exception |
getException()
|
void |
setEventType(int eventType)
|
void |
setException(Exception exception)
|
String |
toString()
|
Methods inherited from class org.apache.maven.wagon.events.WagonEvent |
---|
getTimestamp, getWagon, setTimestamp |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int SESSION_CLOSED
public static final int SESSION_DISCONNECTING
public static final int SESSION_DISCONNECTED
public static final int SESSION_CONNECTION_REFUSED
public static final int SESSION_OPENING
public static final int SESSION_OPENED
public static final int SESSION_LOGGED_IN
public static final int SESSION_LOGGED_OFF
public static final int SESSION_ERROR_OCCURRED
Constructor Detail |
---|
public SessionEvent(Wagon wagon, int eventType)
wagon
- Wagon object which created this eventeventType
- the type of the event
public SessionEvent(Wagon wagon, Exception exception)
SESSION_ERROR_OCCURRED
wagon
- Wagon object which created this eventexception
- the exception
Method Detail |
---|
public int getEventType()
public Exception getException()
public void setEventType(int eventType)
eventType
- The eventType to set.public void setException(Exception exception)
exception
- The exception to set.public String toString()
toString
in class EventObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |