lumis.portal.sendmail
Interface IMailAttachment

Package class diagram package IMailAttachment

@StableMinor(version="4.1",
             sinceVersion="4.0")
public interface IMailAttachment

Stores information about a mail attachment.

Since:
4.0.4

Method Summary
 Blob getContent()
          Returns the content of this attachment.
 InputStream getContentInputStream()
          Gets the content input stream for this mail attachment.
 String getContentType()
          Returns the mime content type of this attachment.
 String getDescription()
          Returns the description of this attachment.
 String getId()
          Returns a unique identifier for this attachment.
 String getName()
          Returns the name of this attachment.
 void setContent(InputStream inputStream, int length)
          Sets the content for this mail attachment.
 void setContentType(String contentType)
          Sets the mime content type of this attachment.
 void setDescription(String description)
          Sets the description of this attachment.
 void setName(String name)
          Sets the name of this attachment.
 

Method Detail

getContentType

String getContentType()
Returns the mime content type of this attachment.

Returns:
the mime content type of this attachment.
Since:
4.0.4

setContentType

void setContentType(String contentType)
Sets the mime content type of this attachment.

Parameters:
contentType - the content type to set.
Since:
4.0.4

getName

String getName()
Returns the name of this attachment.

Returns:
the name of this attachment.
Since:
4.0.4

setName

void setName(String name)
Sets the name of this attachment.

Parameters:
name - the name value to set.
Since:
4.0.4

getDescription

String getDescription()
Returns the description of this attachment.

Returns:
the description of this attachment.
Since:
4.0.4

setDescription

void setDescription(String description)
Sets the description of this attachment.

Parameters:
description - the description value to set.
Since:
4.0.4

getContent

Blob getContent()
Returns the content of this attachment. The blob returned is valid only during the transaction that generated it.

Returns:
the content of this attachment.
Since:
4.0.4

getId

String getId()
Returns a unique identifier for this attachment.

Returns:
a unique identifier for this attachment.
Since:
4.0.4

setContent

void setContent(InputStream inputStream,
                int length)
Sets the content for this mail attachment. The content will be read from the given input stream during the manager's send methods. So the input stream must stay opened until the send method is called.

Parameters:
inputStream - the content input stream.
Since:
4.0.4

getContentInputStream

InputStream getContentInputStream()
Gets the content input stream for this mail attachment.

Parameters:
inputStream - the content input stream.
Since:
4.0.4


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.