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.
- Author:
- Michal Maczka
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 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
-