org.sape.carbon.services.email.util
Class MailAttachment

java.lang.Object
  |
  +--org.sape.carbon.services.email.util.MailAttachment

public class MailAttachment
extends Object

This class models the email attachment.

Copyright 2000 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.7 $($Author: dvoet $ / $Date: 2003/05/05 21:21:30 $)
Author:
Nitin Gulati, May 2002

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

name

private String name

The name of the attachment. E.g "logo".


description

private String description

The attachment description. E.g "logo.gif".


path

private String path

The relative path of the attachment on the machine. E.g "config/email/gifs/logo.gif".


url

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

MailAttachment

public MailAttachment(String name,
                      String description,
                      String path)

This constructor constructs a Mail attachment object using the name, description and path of the attachment.

Parameters:
name - The name of the attachment.
description - The attachment description.
path - The relative path of the attachment.

MailAttachment

public MailAttachment(String name,
                      String description,
                      URL url)

This constructor constructs a Mail attachment object using the name, description and URL of the attachment.

Parameters:
name - The name of the attachment.
description - The attachment description.
url - The URL of the attachment.
Method Detail

getName

public String getName()
Getter for name.

Returns:
String

getDescription

public String getDescription()
Getter for description.

Returns:
String

getPath

public String getPath()
Getter for path.

Returns:
String

getURL

public URL getURL()
Getter for URL.

Returns:
URL


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.