EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class DownloadEvent

java.lang.Object
  extended by java.util.EventObject
      extended by echopoint.tucana.event.DownloadEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DownloadFailEvent, DownloadFinishEvent, DownloadStartEvent

public abstract class DownloadEvent
extends EventObject

A base download event class used to indicate a file/content download process.

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

Field Summary
protected  long contentLength
          The total size in bytes of the content that is being downloaded.
protected  String contentType
          The mime type of the content that is being downloaded.
protected  String fileName
          The file name (if any) of the content being downloaded.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DownloadEvent(DownloadCommand source, String fileName, long contentLength, String contentType)
          Constructs a new download event with the specified content attributes.
 
Method Summary
 long getContentLength()
          Accessor for property 'contentLength'.
 String getContentType()
          Accessor for property 'contentType'.
 String getFileName()
          Accessor for property 'fileName'.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

fileName

protected final String fileName
The file name (if any) of the content being downloaded.


contentLength

protected final long contentLength
The total size in bytes of the content that is being downloaded.


contentType

protected final String contentType
The mime type of the content that is being downloaded.

Constructor Detail

DownloadEvent

public DownloadEvent(DownloadCommand source,
                     String fileName,
                     long contentLength,
                     String contentType)
              throws IllegalArgumentException
Constructs a new download event with the specified content attributes.

Parameters:
source - The object on which the Event initially occurred.
fileName - The name of the file that is being downnloaded.
contentLength - The size in bytes of the content.
contentType - The mime type of the content.
Throws:
IllegalArgumentException - if source is null.
Method Detail

getFileName

public String getFileName()
Accessor for property 'fileName'.

Returns:
Value for property 'fileName'.

getContentLength

public long getContentLength()
Accessor for property 'contentLength'.

Returns:
Value for property 'contentLength'.

getContentType

public String getContentType()
Accessor for property 'contentType'.

Returns:
Value for property 'contentType'.

EchoPoint API - 3.0.0b5
App Webcontainer