Package 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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidThis method 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 occurred.voidsessionLoggedIn(SessionEvent sessionEvent) This method will be called by Wagon when Wagon managed 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 successfully connected to to the repository.voidsessionOpening(SessionEvent sessionEvent) This method will be called when Wagon is about to open connection to the repository.
-
Method Details
-
sessionOpening
This method will be called when Wagon is about to open connection to the repository. The type of the event should be set toSessionEvent.SESSION_OPENING- Parameters:
sessionEvent- the session event
-
sessionOpened
This method will be called when Wagon has successfully connected to to the repository. The type of the event should be set toSessionEvent.SESSION_OPENED- Parameters:
sessionEvent- the session event
-
sessionDisconnecting
This method will be called when Wagon has closed connection to to the repository. The type of the event should be set toSessionEvent.SESSION_DISCONNECTING- Parameters:
sessionEvent- the session event
-
sessionDisconnected
This method will be called when Wagon has closed connection to the repository. The type of the event should be set toSessionEvent.SESSION_DISCONNECTED- Parameters:
sessionEvent- the session event
-
sessionConnectionRefused
This method will be called when Wagon when connection to the repository was refused. The type of the event should be set toSessionEvent.SESSION_CONNECTION_REFUSED- Parameters:
sessionEvent- the session event
-
sessionLoggedIn
This method will be called by Wagon when Wagon managed to login to the repository.- Parameters:
sessionEvent- the session event
-
sessionLoggedOff
This method will be called by Wagon has logged off from the repository. The type of the event should be set toSessionEvent.SESSION_LOGGED_OFF- Parameters:
sessionEvent- the session event
-
sessionError
This method will be called by Wagon when an error occurred. The type of the event should be set toSessionEvent.SESSION_ERROR_OCCURRED- Parameters:
sessionEvent- the session event
-
debug
This method allows to send arbitrary debug messages.- Parameters:
message- the debug message
-