org.apache.maven.wagon.events

Class SessionEvent

public class SessionEvent extends WagonEvent

SessionEvent is used for notifing SessionListeners about occurences of various sistutation releated.

The session event is emitted by Wagon objects when

Version: $Id: SessionEvent.java 162476 2005-04-19 02:49:45Z brett $

Author: Michal Maczka

Field Summary
inteventType
The type of the event.
Exceptionexception
static intSESSION_CLOSED
A SESSION was closed.
static intSESSION_CONNECTION_REFUSED
A SESSION was refused.
static intSESSION_DISCONNECTED
A SESSION was disconnected (not currently used).
static intSESSION_DISCONNECTING
A SESSION is about to be disconnected.
static intSESSION_ERROR_OCCURRED
A SESSION was opened.
static intSESSION_LOGGED_IN
A SESSION was opened.
static intSESSION_LOGGED_OFF
A SESSION was opened.
static intSESSION_OPENED
A SESSION was opened.
static intSESSION_OPENING
A SESSION is about to be opened.
Constructor Summary
SessionEvent(Wagon wagon, int eventType)
Creates new instance of SessionEvent
SessionEvent(Wagon wagon, Exception exception)
Creates new instance of SessionEvent.
Method Summary
intgetEventType()
ExceptiongetException()
voidsetEventType(int eventType)
voidsetException(Exception exception)

Field Detail

eventType

private int eventType
The type of the event. One of the SESSSION_XXX constans

exception

private Exception exception

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.

Constructor Detail

SessionEvent

public SessionEvent(Wagon wagon, int eventType)
Creates new instance of SessionEvent

Parameters: wagon Wagon object which created this event eventType the type of the event

SessionEvent

public SessionEvent(Wagon wagon, Exception exception)
Creates new instance of SessionEvent. Sets event type to SESSION_ERROR_OCCURRED

Parameters: wagon Wagon object which created this event exception the exception

Method Detail

getEventType

public int getEventType()

Returns: Returns the type.

getException

public Exception getException()

Returns: Returns the exception.

setEventType

public void setEventType(int eventType)

Parameters: eventType The eventType to set.

setException

public void setException(Exception exception)

Parameters: exception The exception to set.