org.mentawai.mail
Class EmailAttachment

java.lang.Object
  extended by org.mentawai.mail.EmailAttachment

public class EmailAttachment
extends Object

This class models an email attachment. Used by MultiPartEmail.

Version:
$Id: EmailAttachment.java,v 1.1 2006/03/02 17:11:41 soliveira Exp $
Author:
Frank Y. Kim

Field Summary
static String ATTACHMENT
          Defintion of the part being an attachment
static String INLINE
          Defintion of the part being inline
 
Constructor Summary
EmailAttachment()
           
 
Method Summary
 String getDescription()
          Get the description.
 String getDisposition()
          Get the disposition.
 String getName()
          Get the name.
 String getPath()
          Get the path.
 URL getURL()
          Get the URL.
 void setDescription(String desc)
          Set the description.
 void setDisposition(String aDisposition)
          Set the disposition.
 void setName(String aName)
          Set the name.
 void setPath(String aPath)
          Set the path to the attachment.
 void setURL(URL aUrl)
          Set the URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTACHMENT

public static final String ATTACHMENT
Defintion of the part being an attachment

See Also:
Constant Field Values

INLINE

public static final String INLINE
Defintion of the part being inline

See Also:
Constant Field Values
Constructor Detail

EmailAttachment

public EmailAttachment()
Method Detail

getDescription

public String getDescription()
Get the description.

Returns:
A String.

getName

public String getName()
Get the name.

Returns:
A String.

getPath

public String getPath()
Get the path.

Returns:
A String.

getURL

public URL getURL()
Get the URL.

Returns:
A URL.

getDisposition

public String getDisposition()
Get the disposition.

Returns:
A String.

setDescription

public void setDescription(String desc)
Set the description.

Parameters:
desc - A String.

setName

public void setName(String aName)
Set the name.

Parameters:
aName - A String.

setPath

public void setPath(String aPath)
Set the path to the attachment. The path can be absolute or relative and should include the filename.

Example: /home/user/images/image.jpg
Example: images/image.jpg

Parameters:
aPath - A String.

setURL

public void setURL(URL aUrl)
Set the URL.

Parameters:
aUrl - A URL.

setDisposition

public void setDisposition(String aDisposition)
Set the disposition.

Parameters:
aDisposition - A String.


Copyright © 2013. All Rights Reserved.