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 682051 2008-08-02 21:29:38Z hboutemy $
Author:
Michal Maczka

Method Summary
 void debug(String message)
          This method 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 occurred.
 void sessionLoggedIn(SessionEvent sessionEvent)
          This method will be called by Wagon when Wagon managed 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 successfully 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

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

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

Parameters:
sessionEvent - the session event

sessionDisconnecting

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

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

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

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

Parameters:
sessionEvent - the session event

sessionLoggedOff

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

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

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

Parameters:
sessionEvent - the session event

debug

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

Parameters:
message - the debug message


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.