public class URLEmailContent extends java.lang.Object implements EmailContent
EmailContent
that uses a URL to fetch the
content of e-mail messages. Attention should be paid to the requirements that
getSubject() places on resources pointed to by such URLs.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright.
|
Constructor and Description |
---|
URLEmailContent(java.lang.String url)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets the e-mail message content.
|
java.lang.String |
getSubject()
Gets the subject line from the url used for retrieving e-mail message content.
|
java.lang.String |
getUrl()
Gets the url used for retreiving e-mail message content.
|
void |
setUrl(java.lang.String url)
Sets the url used for retreiving e-mail message content.
|
public static final java.lang.String COPYRIGHT
public URLEmailContent(java.lang.String url)
url
- The url to use for the e-mail message content represented as a String.public java.lang.String getContent()
getContent
in interface EmailContent
public java.lang.String getSubject()
getSubject
in interface EmailContent
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- the url used to retrieve the e-mail message content.