|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MailInterface
Interface that defines common mail recipient information.
Method Summary | |
---|---|
void |
addAttachment(java.io.InputStream inputStream,
java.lang.String contentId,
java.lang.String name,
java.lang.String contentType)
Add an attachment to include with mail notifications. |
void |
addAttachment(java.lang.String path,
java.lang.String contentId,
java.lang.String name,
java.lang.String contentType)
Add an attachment to include with mail notifications. |
void |
addAttachment(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String contentId,
java.lang.String name,
java.lang.String contentType)
Add an attachment to include with mail notifications. |
void |
addAttachment(java.net.URL url,
java.lang.String contentId,
java.lang.String name,
java.lang.String contentType)
Add an attachment to include with mail notifications. |
java.lang.String |
getBccAddress()
Return the blind carbon copy email recipient. |
java.lang.String |
getContentType()
Return the content-type (MIME type) of the message. |
java.lang.String |
getEmailAddress()
Return the email recipient. |
java.lang.String |
getFrom()
Return the From field. |
java.lang.String |
getFromName()
Return the personal name for the From field. |
java.lang.String |
getReplyTo()
Return the ReplyTo field. |
java.lang.String |
getReplyToName()
Return the personal name for the ReplyTo field. |
java.lang.String |
getSubject()
Return the Subject field. |
void |
setBccAddress(java.lang.String address)
Set the Bcc email address. |
void |
setContentType(java.lang.String contentType)
The content-type (MIME type) of the messsage. |
void |
setEmailAddress(java.lang.String address)
Set the email address. |
void |
setFrom(java.lang.String from)
Set the From field. |
void |
setFromName(java.lang.String personalName)
Set the personal name for the From field. |
void |
setFromName(java.lang.String personalName,
java.lang.String charset)
Set the personal name for the From field. |
void |
setReplyTo(java.lang.String replyTo)
Set the ReplyTo field. |
void |
setReplyToName(java.lang.String personalName)
Set the personal name for the ReplyTo field. |
void |
setReplyToName(java.lang.String personalName,
java.lang.String charset)
Set the personal name for the ReplyTo field. |
void |
setSubject(java.lang.String subject)
Set the Subject field. |
void |
setSubject(java.lang.String subject,
java.lang.String charset)
Set the Subject field. |
Method Detail |
---|
void setContentType(java.lang.String contentType)
contentType
- The MIME type.java.lang.String getContentType()
java.lang.String getReplyTo()
void setReplyTo(java.lang.String replyTo)
replyTo
- The ReplyTo field.java.lang.String getReplyToName()
void setReplyToName(java.lang.String personalName)
personalName
- The personal name for the ReplyTo field.void setReplyToName(java.lang.String personalName, java.lang.String charset)
personalName
- The personal name for the ReplyTo field.charset
- If the personal name contains non US-ASCII characters, then
the name will be encoded using the specified charset. If the
name contains only US-ASCII characters, no encoding is done and
the name is used as is.java.lang.String getEmailAddress()
void setEmailAddress(java.lang.String address)
address
- The email address.java.lang.String getSubject()
void setSubject(java.lang.String subject)
subject
- The Subject field.void setSubject(java.lang.String subject, java.lang.String charset)
subject
- The Subject field.charset
- If the subject contains non US-ASCII characters, it will be
encoded using the specified charset. If the subject contains
only US-ASCII characters, no encoding is done and it is used as
is.java.lang.String getFrom()
void setFrom(java.lang.String from)
from
- The From field.java.lang.String getFromName()
void setFromName(java.lang.String personalName)
personalName
- The personal name for the From field.void setFromName(java.lang.String personalName, java.lang.String charset)
personalName
- The personal name for the From field.charset
- If the personal name contains non US-ASCII characters, then
the name will be encoded using the specified charset. If the
name contains only US-ASCII characters, no encoding is done and
the name is used as is.java.lang.String getBccAddress()
void setBccAddress(java.lang.String address)
address
- The blind carbon copy email address.void addAttachment(java.lang.String path, java.lang.String contentId, java.lang.String name, java.lang.String contentType)
path
- The name of the attachment file. This is a complete
file-system path.contentId
- The Content-ID header field.This should be specified if
the attachment is to be embedded within the mail message. The
caller is responsible for making sure the text of the mail
message contains the corresponding cid URL to reference this cid
value. If null
is specified, the file will be
included as an attachment but will not be embedded.name
- The name to use for this attachment when it is inserted into
the mail message. If null
is specified, the name
of the file will be used as the attachment name.contentType
- The MIME type to set for this attachment. If
null
is specified, the MIME type will be
determined based on the file extension or content. Otherwise, a
MIME type can explicitly be provided on this method.void addAttachment(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String contentId, java.lang.String name, java.lang.String contentType)
url
- The String URL identifying the WebDAV resourceuser
- the WebDAV authentication user namepassword
- the WebDAV password for authenticationcontentId
- The Content-ID header field.This should be specified if
the attachment is to be embedded within the mail message. The
caller is responsible for making sure the text of the mail
message contains the corresponding cid URL to reference this cid
value. If null
is specified, the file will be
included as an attachment but will not be embedded.name
- The name to use for this attachment when it is inserted into
the mail message. If null
is specified, the name
of the file will be used as the attachment name.contentType
- The MIME type to set for this attachment. If
null
is specified, the MIME type will be
determined based on the file extension or content. Otherwise, a
MIME type can explicitly be provided on this method.void addAttachment(java.net.URL url, java.lang.String contentId, java.lang.String name, java.lang.String contentType)
url
- The URL that identifies the file to be included as an
attachment.contentId
- The Content-ID header field.This should be specified if
the attachment is to be embedded within the mail message. The
caller is responsible for making sure the text of the mail
message contains the corresponding cid URL to reference this cid
value. If null
is specified, the file will be
included as an attachment but will not be embedded.name
- The name to use for this attachment when it is inserted into
the mail message. If null
is specified, the name
of the file will be used as the attachment name.contentType
- The MIME type to set for this attachment. If
null
is specified, the MIME type will be
determined based on the file extension or content. Otherwise, a
MIME type can explicitly be provided on this method.void addAttachment(java.io.InputStream inputStream, java.lang.String contentId, java.lang.String name, java.lang.String contentType)
inputStream
- Input stream that identifies the attachment data.contentId
- The Content-ID header field.This should be specified if
the attachment is to be embedded within the mail message. The
caller is responsible for making sure the text of the mail
message contains the corresponding cid URL to reference this cid
value. If null
is specified, the file will be
included as an attachment but will not be embedded.name
- The name to use for this attachment when it is inserted into
the mail message. If null
is specified, the name
of the file will be used as the attachment name.contentType
- The MIME type to set for this attachment. If
null
is specified, the MIME type will be
determined based on the file extension or content. Otherwise, a
MIME type can explicitly be provided on this method.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |