public class Debug extends Object implements SessionListener, TransferListener
Constructor and Description |
---|
Debug() |
Debug(PrintStream out) |
Modifier and Type | Method and Description |
---|---|
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) |
public Debug()
public Debug(PrintStream out)
public void sessionOpening(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_OPENING
sessionOpening
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionOpening(SessionEvent)
public void sessionOpened(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_OPENED
sessionOpened
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionOpened(SessionEvent)
public void sessionDisconnecting(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_DISCONNECTING
sessionDisconnecting
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionDisconnecting(SessionEvent)
public void sessionDisconnected(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_DISCONNECTED
sessionDisconnected
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionDisconnected(SessionEvent)
public void sessionConnectionRefused(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_CONNECTION_REFUSED
sessionConnectionRefused
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionConnectionRefused(SessionEvent)
public void sessionLoggedIn(SessionEvent sessionEvent)
SessionListener
sessionLoggedIn
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionLoggedIn(SessionEvent)
public void sessionLoggedOff(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_LOGGED_OFF
sessionLoggedOff
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionLoggedOff(SessionEvent)
public void debug(String message)
SessionListener
debug
in interface SessionListener
debug
in interface TransferListener
message
- the debug messageTransferListener.debug(String)
public void transferInitiated(TransferEvent transferEvent)
transferInitiated
in interface TransferListener
public void transferStarted(TransferEvent transferEvent)
transferStarted
in interface TransferListener
TransferListener.transferStarted(TransferEvent)
public void transferProgress(TransferEvent transferEvent, byte[] buffer, int length)
transferProgress
in interface TransferListener
TransferListener.transferProgress(TransferEvent,byte[],int)
public void transferCompleted(TransferEvent transferEvent)
transferCompleted
in interface TransferListener
TransferListener.transferCompleted(TransferEvent)
public void transferError(TransferEvent transferEvent)
transferError
in interface TransferListener
TransferListener.transferError(TransferEvent)
public void sessionError(SessionEvent sessionEvent)
SessionListener
SessionEvent.SESSION_ERROR_OCCURRED
sessionError
in interface SessionListener
sessionEvent
- the session eventSessionListener.sessionError(SessionEvent)
public PrintStream getOut()
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.