EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class DownloadCallbackAdapter

java.lang.Object
  extended by echopoint.tucana.event.DownloadCallbackAdapter
All Implemented Interfaces:
DownloadCallback, Serializable, EventListener

public class DownloadCallbackAdapter
extends Object
implements DownloadCallback

An adapter class that logs the progress of a download command.

Version:
$Id: DownloadCallbackAdapter.java 92 2008-11-11 19:49:44Z sptrakesh $
Author:
Rakesh 2008-11-11
See Also:
Serialized Form

Field Summary
protected  Level level
          The log level to use.
protected static Logger logger
          The logger to use to log the download progress.
 
Constructor Summary
DownloadCallbackAdapter()
          Default constructor.
DownloadCallbackAdapter(Level level)
          Create a new instance with the specified logging level.
 
Method Summary
 void downloadFailed(DownloadFailEvent event)
          Indicate that a content download process failed, usually due to reasons other than client cancellation.
 void downloadFinished(DownloadFinishEvent event)
          Indicate that a content download process has ended successfully.
 void downloadStarted(DownloadStartEvent event)
          Indicate that a content download process has been started.
 Level getLevel()
          Accessor for property 'level'.
 void setLevel(Level level)
          Mutator for property 'level'.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Logger logger
The logger to use to log the download progress.


level

protected Level level
The log level to use.

Constructor Detail

DownloadCallbackAdapter

public DownloadCallbackAdapter()
Default constructor. Sets level to Level.FINE


DownloadCallbackAdapter

public DownloadCallbackAdapter(Level level)
Create a new instance with the specified logging level.

Parameters:
level - The logging level to use.
Method Detail

downloadStarted

public void downloadStarted(DownloadStartEvent event)
Indicate that a content download process has been started.

Specified by:
downloadStarted in interface DownloadCallback
Parameters:
event - The download event object.

downloadFinished

public void downloadFinished(DownloadFinishEvent event)
Indicate that a content download process has ended successfully.

Specified by:
downloadFinished in interface DownloadCallback
Parameters:
event - The download event object.

downloadFailed

public void downloadFailed(DownloadFailEvent event)
Indicate that a content download process failed, usually due to reasons other than client cancellation.

Specified by:
downloadFailed in interface DownloadCallback
Parameters:
event - The download fail event object.

getLevel

public Level getLevel()
Accessor for property 'level'.

Returns:
Value for property 'level'.

setLevel

public void setLevel(Level level)
Mutator for property 'level'.

Parameters:
level - Value to set for property 'level'.

EchoPoint API - 3.0.0b5
App Webcontainer