|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.email.util.MailAttachment
This class models the email attachment.
Copyright 2000 Sapient
Field Summary | |
private String |
description
The attachment description. |
private String |
name
The name of the attachment. |
private String |
path
The relative path of the attachment on the machine. |
private URL |
url
The java.net.URL of the attachment. |
Constructor Summary | |
MailAttachment(String name,
String description,
String path)
This constructor constructs a Mail attachment object using the name, description and path of the attachment. |
|
MailAttachment(String name,
String description,
URL url)
This constructor constructs a Mail attachment object using the name, description and URL of the attachment. |
Method Summary | |
String |
getDescription()
Getter for description. |
String |
getName()
Getter for name. |
String |
getPath()
Getter for path. |
URL |
getURL()
Getter for URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String name
The name of the attachment. E.g "logo".
private String description
The attachment description. E.g "logo.gif".
private String path
The relative path of the attachment on the machine. E.g "config/email/gifs/logo.gif".
private URL url
The java.net.URL
of the attachment.
E.g URL url = new URL
("file", "localhost", "config/email/gifs/logo.gif");
Constructor Detail |
public MailAttachment(String name, String description, String path)
This constructor constructs a Mail attachment object using the name, description and path of the attachment.
name
- The name of the attachment.description
- The attachment description.path
- The relative path of the attachment.public MailAttachment(String name, String description, URL url)
This constructor constructs a Mail attachment object using the name, description and URL of the attachment.
name
- The name of the attachment.description
- The attachment description.url
- The URL
of the attachment.Method Detail |
public String getName()
public String getDescription()
public String getPath()
public URL getURL()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |