|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.gx.webmanager.handler.forms.handling.MailBody
public class MailBody
Utility class for the MailHandler for building a HTML email MIME parts.
| Constructor Summary | |
|---|---|
MailBody(java.lang.String targetURL,
boolean textversion,
boolean embedHtmlFlag)
Constructor |
|
| Method Summary | |
|---|---|
void |
createAttachmentsForCids(java.util.List attachmentParts)
Replace the |
void |
createCids()
Surround all links to images and stylesheets with |
java.lang.String |
getBody()
Get the body text for the email |
java.lang.String |
getContentType()
Get the MIME content type of this body |
static javax.activation.DataSource |
getDataSource(java.net.URL url)
Creates a datasource representing the contents for a url. |
void |
includeStylesheets()
Include external stylesheets into the body. |
void |
removeJavaScript()
Remove the Javascript from the body of the mail |
void |
retrieveBodyFromUrl(java.lang.String pageURL,
javax.servlet.http.Cookie[] cookies)
Deprecated. this method does not contain the fix for sending personalized mail without having a JSession cookie on the client. |
void |
retrieveBodyFromUrl(java.lang.String pageURL,
javax.servlet.http.Cookie[] cookies,
javax.servlet.http.HttpServletRequest request)
Return the body text from the pointer page. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailBody(java.lang.String targetURL,
boolean textversion,
boolean embedHtmlFlag)
targetURL - the url of the page to be fetched and used as the email body text.textversion - if true then the email will be in plain text, otherwise HTML is used.embedHtmlFlag - if true then all images needed to display the HTML message will be embedded in the mail.| Method Detail |
|---|
public void retrieveBodyFromUrl(java.lang.String pageURL,
javax.servlet.http.Cookie[] cookies,
javax.servlet.http.HttpServletRequest request)
throws java.net.MalformedURLException,
java.io.IOException
pageURL - cookies -
java.net.MalformedURLException
java.io.IOException
public void retrieveBodyFromUrl(java.lang.String pageURL,
javax.servlet.http.Cookie[] cookies)
throws java.net.MalformedURLException,
java.io.IOException
pageURL - cookies -
java.net.MalformedURLException
java.io.IOExceptionpublic void removeJavaScript()
public void createCids()
public void includeStylesheets()
public void createAttachmentsForCids(java.util.List attachmentParts)
attachmentParts - the generated MimeBodyPart objects will be added to this list.public java.lang.String getBody()
public java.lang.String getContentType()
public static javax.activation.DataSource getDataSource(java.net.URL url)
throws java.io.IOException
url - The url for which the contents should be retrieved.
url argument.
java.io.IOException - If a read error occurred or the responsecode of the webserver is not 200 (OK).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||