edu.utexas.its.eis.tools.qwicap.servlet
Class Downloadable

java.lang.Object
  extended by edu.utexas.its.eis.tools.qwicap.servlet.Downloadable

public class Downloadable
extends Object

Represents a downloadable entity, typically generated dynamically, that is being, or will be, made available to the client via the Qwicap.addDownloadable method.

Author:
Chris W. Johnson

Method Summary
 int getContentLength()
          Returns the length of this downloadable.
 String getMIMEType()
          Returns the MIME type of this downloadable.
 String getName()
          Returns the name of this downloadable; if the client saves this image to disk, this will be its file name.
 String getURI()
          Returns the unique, relative URI of this downloadable.
 String toString()
          Returns the unique, relative URI of this downloadable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Returns the unique, relative URI of this downloadable.

Overrides:
toString in class Object
Returns:
This downloadable's unique URI.

getURI

public String getURI()
Returns the unique, relative URI of this downloadable.

Returns:
This downloadable's unique URI.
See Also:
toString()

getName

public String getName()
Returns the name of this downloadable; if the client saves this image to disk, this will be its file name.

Returns:
Name of this downloadable.

getMIMEType

public String getMIMEType()
Returns the MIME type of this downloadable.

Returns:
The MIME type of this downloadable.

getContentLength

public int getContentLength()
Returns the length of this downloadable.

Returns:
The length of this downloadable.