org.apache.maven.wagon.events
Interface SessionListener

All Known Implementing Classes:
Debug

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
 void debug(java.lang.String message)
          This methid allows to send arbitrary debug messages.
 void sessionConnectionRefused(SessionEvent sessionEvent)
          This method will be called when Wagon when connection to the repository was refused.
 void sessionDisconnected(SessionEvent sessionEvent)
          This method will be called when Wagon has closed connection to the repository.
 void sessionDisconnecting(SessionEvent sessionEvent)
          This method will be called when Wagon has closed connection to to the repository.
 void sessionError(SessionEvent sessionEvent)
          This method will be called by Wagon when an error occured.
 void sessionLoggedIn(SessionEvent sessionEvent)
          This method will be called by Wagon when Wagon manged to login to the repository.
 void sessionLoggedOff(SessionEvent sessionEvent)
          This method will be called by Wagon has logged off from the repository.
 void sessionOpened(SessionEvent sessionEvent)
          This method will be called when Wagon has sucessfully connected to to the repository.
 void sessionOpening(SessionEvent sessionEvent)
          This method will be called when Wagon is about to open connection to the repository.
 

Method Detail

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

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

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

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

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

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

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

debug

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

Parameters:
message - the debug messgae