org.apache.maven.wagon.observers
Class Debug

java.lang.Object
  extended by org.apache.maven.wagon.observers.Debug
All Implemented Interfaces:
SessionListener, TransferListener

public class Debug
extends Object
implements SessionListener, TransferListener

Version:
$Id: Debug.java 682047 2008-08-02 21:07:38Z hboutemy $
Author:
Michal Maczka

Constructor Summary
Debug()
           
Debug(PrintStream out)
           
 
Method Summary
 void debug(String message)
          This method allows to send arbitrary debug messages.
 PrintStream getOut()
           
 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.
 void transferCompleted(TransferEvent transferEvent)
           
 void transferError(TransferEvent transferEvent)
           
 void transferInitiated(TransferEvent transferEvent)
           
 void transferProgress(TransferEvent transferEvent, byte[] buffer, int length)
           
 void transferStarted(TransferEvent transferEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debug

public Debug()

Debug

public Debug(PrintStream out)
Method Detail

sessionOpening

public void sessionOpening(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionOpening in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionOpening(SessionEvent)

sessionOpened

public void sessionOpened(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionOpened in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionOpened(SessionEvent)

sessionDisconnecting

public void sessionDisconnecting(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionDisconnecting in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionDisconnecting(SessionEvent)

sessionDisconnected

public void sessionDisconnected(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionDisconnected in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionDisconnected(SessionEvent)

sessionConnectionRefused

public void sessionConnectionRefused(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionConnectionRefused in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionConnectionRefused(SessionEvent)

sessionLoggedIn

public void sessionLoggedIn(SessionEvent sessionEvent)
Description copied from interface: SessionListener
This method will be called by Wagon when Wagon managed to login to the repository.

Specified by:
sessionLoggedIn in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionLoggedIn(SessionEvent)

sessionLoggedOff

public void sessionLoggedOff(SessionEvent sessionEvent)
Description copied from interface: SessionListener
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

Specified by:
sessionLoggedOff in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionLoggedOff(SessionEvent)

debug

public void debug(String message)
Description copied from interface: SessionListener
This method allows to send arbitrary debug messages.

Specified by:
debug in interface SessionListener
Specified by:
debug in interface TransferListener
Parameters:
message - the debug message
See Also:
TransferListener.debug(String)

transferInitiated

public void transferInitiated(TransferEvent transferEvent)
Specified by:
transferInitiated in interface TransferListener

transferStarted

public void transferStarted(TransferEvent transferEvent)
Specified by:
transferStarted in interface TransferListener
See Also:
TransferListener.transferStarted(TransferEvent)

transferProgress

public void transferProgress(TransferEvent transferEvent,
                             byte[] buffer,
                             int length)
Specified by:
transferProgress in interface TransferListener
See Also:
TransferListener.transferProgress(TransferEvent,byte[],int)

transferCompleted

public void transferCompleted(TransferEvent transferEvent)
Specified by:
transferCompleted in interface TransferListener
See Also:
TransferListener.transferCompleted(TransferEvent)

transferError

public void transferError(TransferEvent transferEvent)
Specified by:
transferError in interface TransferListener
See Also:
TransferListener.transferError(TransferEvent)

sessionError

public void sessionError(SessionEvent sessionEvent)
Description copied from interface: SessionListener
This method will be called by Wagon when an error occurred.

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

Specified by:
sessionError in interface SessionListener
Parameters:
sessionEvent - the session event
See Also:
SessionListener.sessionError(SessionEvent)

getOut

public PrintStream getOut()


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