org.apache.maven.wagon.events

Interface SessionListener

public interface SessionListener

Interface for classes which wants to receive and respond to any session update events.

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

Author: Michal Maczka

Method Summary
voiddebug(String message)
This methid allows to send arbitrary debug messages.
voidsessionConnectionRefused(SessionEvent sessionEvent)
This method will be called when Wagon when connection to the repository was refused.
voidsessionDisconnected(SessionEvent sessionEvent)
This method will be called when Wagon has closed connection to the repository.
voidsessionDisconnecting(SessionEvent sessionEvent)
This method will be called when Wagon has closed connection to to the repository.
voidsessionError(SessionEvent sessionEvent)
This method will be called by Wagon when an error occured.
voidsessionLoggedIn(SessionEvent sessionEvent)
This method will be called by Wagon when Wagon manged to login to the repository.
voidsessionLoggedOff(SessionEvent sessionEvent)
This method will be called by Wagon has logged off from the repository.
voidsessionOpened(SessionEvent sessionEvent)
This method will be called when Wagon has sucessfully connected to to the repository.
voidsessionOpening(SessionEvent sessionEvent)
This method will be called when Wagon is about to open connection to the repository.

Method Detail

debug

public void debug(String message)
This methid allows to send arbitrary debug messages.

Parameters: message the debug messgae

sessionConnectionRefused

public void sessionConnectionRefused(SessionEvent sessionEvent)
This method will be called when Wagon when connection to the repository was refused.

The type of the event should be set to SessionEvent.SESSION_CONNECTION_REFUSED

Parameters: sessionEvent the session event

sessionDisconnected

public void sessionDisconnected(SessionEvent sessionEvent)
This method will be called when Wagon has closed connection to the repository. The type of the event should be set to SessionEvent.SESSION_DISCONNECTED

Parameters: sessionEvent the session event

sessionDisconnecting

public void sessionDisconnecting(SessionEvent sessionEvent)
This method will be called when Wagon has closed connection to to the repository. The type of the event should be set to SessionEvent.SESSION_DISCONNECTING

Parameters: sessionEvent the session event

sessionError

public void sessionError(SessionEvent sessionEvent)
This method will be called by Wagon when an error occured.

The type of the event should be set to SessionEvent.SESSION_ERROR_OCCURRED

Parameters: sessionEvent the session event

sessionLoggedIn

public void sessionLoggedIn(SessionEvent sessionEvent)
This method will be called by Wagon when Wagon manged to login to the repository.

Parameters: sessionEvent the session event

sessionLoggedOff

public void sessionLoggedOff(SessionEvent sessionEvent)
This method will be called by Wagon has logged off from the repository.

The type of the event should be set to SessionEvent.SESSION_LOGGED_OFF

Parameters: sessionEvent the session event

sessionOpened

public void sessionOpened(SessionEvent sessionEvent)
This method will be called when Wagon has sucessfully connected to to the repository. The type of the event should be set to SessionEvent.SESSION_OPENED

Parameters: sessionEvent the session event

sessionOpening

public void sessionOpening(SessionEvent sessionEvent)
This method will be called when Wagon is about to open connection to the repository. The type of the event should be set to SessionEvent.SESSION_OPENING

Parameters: sessionEvent the session event