Package org.apache.maven.wagon.observers
Class Debug
- java.lang.Object
-
- org.apache.maven.wagon.observers.Debug
-
- All Implemented Interfaces:
SessionListener,TransferListener
public class Debug extends java.lang.Object implements SessionListener, TransferListener
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddebug(java.lang.String message)This method allows to send arbitrary debug messages.java.io.PrintStreamgetOut()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.voidtransferCompleted(TransferEvent transferEvent)voidtransferError(TransferEvent transferEvent)voidtransferInitiated(TransferEvent transferEvent)voidtransferProgress(TransferEvent transferEvent, byte[] buffer, int length)voidtransferStarted(TransferEvent transferEvent)
-
-
-
Method Detail
-
sessionOpening
public void sessionOpening(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis 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- Specified by:
sessionOpeningin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionOpening(SessionEvent)
-
sessionOpened
public void sessionOpened(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called when Wagon has successfully connected to to the repository. The type of the event should be set toSessionEvent.SESSION_OPENED- Specified by:
sessionOpenedin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionOpened(SessionEvent)
-
sessionDisconnecting
public void sessionDisconnecting(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called when Wagon has closed connection to to the repository. The type of the event should be set toSessionEvent.SESSION_DISCONNECTING- Specified by:
sessionDisconnectingin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionDisconnecting(SessionEvent)
-
sessionDisconnected
public void sessionDisconnected(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called when Wagon has closed connection to the repository. The type of the event should be set toSessionEvent.SESSION_DISCONNECTED- Specified by:
sessionDisconnectedin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionDisconnected(SessionEvent)
-
sessionConnectionRefused
public void sessionConnectionRefused(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis 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- Specified by:
sessionConnectionRefusedin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionConnectionRefused(SessionEvent)
-
sessionLoggedIn
public void sessionLoggedIn(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called by Wagon when Wagon managed to login to the repository.- Specified by:
sessionLoggedInin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionLoggedIn(SessionEvent)
-
sessionLoggedOff
public void sessionLoggedOff(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called by Wagon has logged off from the repository. The type of the event should be set toSessionEvent.SESSION_LOGGED_OFF- Specified by:
sessionLoggedOffin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionLoggedOff(SessionEvent)
-
debug
public void debug(java.lang.String message)
Description copied from interface:SessionListenerThis method allows to send arbitrary debug messages.- Specified by:
debugin interfaceSessionListener- Specified by:
debugin interfaceTransferListener- Parameters:
message- the debug message- See Also:
TransferListener.debug(String)
-
transferInitiated
public void transferInitiated(TransferEvent transferEvent)
- Specified by:
transferInitiatedin interfaceTransferListener
-
transferStarted
public void transferStarted(TransferEvent transferEvent)
- Specified by:
transferStartedin interfaceTransferListener- See Also:
TransferListener.transferStarted(TransferEvent)
-
transferProgress
public void transferProgress(TransferEvent transferEvent, byte[] buffer, int length)
- Specified by:
transferProgressin interfaceTransferListener- See Also:
TransferListener.transferProgress(TransferEvent,byte[],int)
-
transferCompleted
public void transferCompleted(TransferEvent transferEvent)
- Specified by:
transferCompletedin interfaceTransferListener- See Also:
TransferListener.transferCompleted(TransferEvent)
-
transferError
public void transferError(TransferEvent transferEvent)
- Specified by:
transferErrorin interfaceTransferListener- See Also:
TransferListener.transferError(TransferEvent)
-
sessionError
public void sessionError(SessionEvent sessionEvent)
Description copied from interface:SessionListenerThis method will be called by Wagon when an error occurred. The type of the event should be set toSessionEvent.SESSION_ERROR_OCCURRED- Specified by:
sessionErrorin interfaceSessionListener- Parameters:
sessionEvent- the session event- See Also:
SessionListener.sessionError(SessionEvent)
-
getOut
public java.io.PrintStream getOut()
-
-