org.apache.turbine.util.mail
Class EmailAttachment

java.lang.Object
  |
  +--org.apache.turbine.util.mail.EmailAttachment

public class EmailAttachment
extends java.lang.Object

This class models an email attachment. Used by MultiPartEmail.

Version:
$Id: EmailAttachment.java,v 1.1.1.1 2001/08/16 05:09:55 jvanzyl Exp $
Author:
Frank Y. Kim

Field Summary
static java.lang.String ATTACHMENT
           
private  java.lang.String description
          The description of this attachment.
private  java.lang.String disposition
          The disposition.
static java.lang.String INLINE
           
private  java.lang.String name
          The name of this attachment.
private  java.lang.String path
          The full path to this attachment (ie c:/path/to/file.jpg).
private  java.net.URL url
          The HttpURI where the file can be got.
 
Constructor Summary
EmailAttachment()
           
 
Method Summary
 java.lang.String getDescription()
          Get the description.
 java.lang.String getDisposition()
          Get the disposition.
 java.lang.String getName()
          Get the name.
 java.lang.String getPath()
          Get the path.
 java.net.URL getURL()
          Get the URL.
 void setDescription(java.lang.String desc)
          Set the description.
 void setDisposition(java.lang.String disposition)
          Set the disposition.
 void setName(java.lang.String name)
          Set the name.
 void setPath(java.lang.String path)
          Set the path.
 void setURL(java.net.URL url)
          Set the URL.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ATTACHMENT

public static final java.lang.String ATTACHMENT

INLINE

public static final java.lang.String INLINE

name

private java.lang.String name
The name of this attachment.

description

private java.lang.String description
The description of this attachment.

path

private java.lang.String path
The full path to this attachment (ie c:/path/to/file.jpg).

url

private java.net.URL url
The HttpURI where the file can be got.

disposition

private java.lang.String disposition
The disposition.
Constructor Detail

EmailAttachment

public EmailAttachment()
Method Detail

getDescription

public java.lang.String getDescription()
Get the description.
Returns:
A String.

getName

public java.lang.String getName()
Get the name.
Returns:
A String.

getPath

public java.lang.String getPath()
Get the path.
Returns:
A String.

getURL

public java.net.URL getURL()
Get the URL.
Returns:
A URL.

getDisposition

public java.lang.String getDisposition()
Get the disposition.
Returns:
A String.

setDescription

public void setDescription(java.lang.String desc)
Set the description.
Parameters:
desc - A String.

setName

public void setName(java.lang.String name)
Set the name.
Parameters:
name - A String.

setPath

public void setPath(java.lang.String path)
Set the path.
Parameters:
path - A String.

setURL

public void setURL(java.net.URL url)
Set the URL.
Parameters:
url - A URL.

setDisposition

public void setDisposition(java.lang.String disposition)
Set the disposition.
Parameters:
disposition - A String.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.