com.starteam
Class Server.EmailAttachment

java.lang.Object
  extended by com.starteam.Server.EmailAttachment
Enclosing class:
Server

public static final class Server.EmailAttachment
extends java.lang.Object

This class embodies an email attachment.

See Also:
Server.sendMail(com.starteam.View, com.starteam.User[], com.starteam.User[], com.starteam.User[], java.lang.String, java.lang.String)

Constructor Summary
Server.EmailAttachment(java.io.File source, java.lang.String name, java.lang.String contentType)
          Creates a new email attachment based on the specified input file.
 
Method Summary
 java.lang.String getContentType()
          Return's the attachment's MIME content-type.
 java.lang.String getName()
          Returns the attachment's name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server.EmailAttachment

public Server.EmailAttachment(java.io.File source,
                              java.lang.String name,
                              java.lang.String contentType)
Creates a new email attachment based on the specified input file. You must also supply a name for the attachment and the MIME content-type. For example, content-type might be "text/html"

Parameters:
source - the file to be attached, may not be null
name - the name to call the attachment, may not be null
contentType - the attachment's content type, may not be null
Method Detail

getName

public java.lang.String getName()
Returns the attachment's name.


getContentType

public java.lang.String getContentType()
Return's the attachment's MIME content-type.



StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.