|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.mail.MailRequest
public class MailRequest
A simple client for sending SMTP based E-Mail messages.
Field Summary | |
---|---|
static String |
MIMETYPE_HTML
Mime type - HTML, "text/html; charset=UTF-8" |
static String |
MIMETYPE_PLAIN
Mime type - plain, "text/plain; charset=UTF-8" |
Constructor Summary | |
---|---|
MailRequest()
Default constructor. |
|
MailRequest(Authenticator authenticator)
Constructs with an authenticator if crendentials are required by the mail server. |
Method Summary | |
---|---|
String |
getBody()
Gets the body. |
String |
getFromAddress()
Gets the from E-Mail address. |
String |
getHost()
Gets the host. |
String |
getMimeType()
Gets the Mime type. |
int |
getPort()
Gets the port. |
StringSet |
getRecipients()
Gets the recipients. |
String |
getSubject()
Gets the subject. |
String |
getToAddress()
Gets the to E-Mail address. |
void |
send()
Sends the E-Mail message. |
void |
setBody(String body)
Sets the body. |
void |
setFromAddress(String address)
Sets the from E-Mail address. |
void |
setHost(String host)
Sets the host. |
void |
setMimeTypeHtml()
Sets the Mime type to text/html. |
void |
setMimeTypePlain()
Sets the Mime type to text/plain. |
void |
setPort(int port)
Sets the port. |
void |
setSubject(String subject)
Sets the subject. |
void |
setToAddress(String address)
Sets the to E-Mail address. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MIMETYPE_HTML
public static final String MIMETYPE_PLAIN
Constructor Detail |
---|
public MailRequest()
public MailRequest(Authenticator authenticator)
authenticator
- the authenticatorMethod Detail |
---|
public String getBody()
public void setBody(String body)
body
- the bodypublic String getFromAddress()
public void setFromAddress(String address)
address
- the from addresspublic String getHost()
public void setHost(String host)
host
- the hostpublic String getMimeType()
public void setMimeTypeHtml()
public void setMimeTypePlain()
public int getPort()
public void setPort(int port)
port
- the portpublic StringSet getRecipients()
public String getSubject()
public void setSubject(String subject)
subject
- the subjectpublic String getToAddress()
public void setToAddress(String address)
address
- the to addresspublic void send() throws AddressException, MessagingException
AddressException
- if an E-Mail address is invalid
MessagingException
- if an exception occurs
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |