org.apache.commons.mail.mocks
Class MockHtmlEmailConcrete

java.lang.Object
  extended by org.apache.commons.mail.Email
      extended by org.apache.commons.mail.MultiPartEmail
          extended by org.apache.commons.mail.HtmlEmail
              extended by org.apache.commons.mail.mocks.MockHtmlEmailConcrete

public class MockHtmlEmailConcrete
extends org.apache.commons.mail.HtmlEmail

Extension of the HtmlEmail Class (used to allow testing only)

Since:
1.0
Version:
$Id: MockHtmlEmailConcrete.java 578501 2007-09-22 21:18:49Z bspeakmon $
Author:
Corey Scott

Field Summary
 
Fields inherited from class org.apache.commons.mail.HtmlEmail
CID_LENGTH, html, inlineEmbeds, inlineImages, text
 
Fields inherited from class org.apache.commons.mail.Email
ATTACHMENTS, authenticator, bccList, bounceAddress, ccList, charset, content, CONTENT_TYPE, contentType, debug, EMAIL_BODY, EMAIL_SUBJECT, emailBody, FILE_SERVER, fromAddress, headers, hostName, ISO_8859_1, KOI8_R, MAIL_DEBUG, MAIL_HOST, MAIL_PORT, MAIL_SMTP_AUTH, MAIL_SMTP_FROM, MAIL_SMTP_PASSWORD, MAIL_SMTP_SOCKET_FACTORY_CLASS, MAIL_SMTP_SOCKET_FACTORY_FALLBACK, MAIL_SMTP_SOCKET_FACTORY_PORT, MAIL_SMTP_USER, MAIL_TRANSPORT_PROTOCOL, MAIL_TRANSPORT_TLS, message, popBeforeSmtp, popHost, popPassword, popUsername, RECEIVER_EMAIL, RECEIVER_NAME, replyList, SENDER_EMAIL, SENDER_NAME, sentDate, SMTP, smtpPort, ssl, sslSmtpPort, subject, TEXT_HTML, TEXT_PLAIN, tls, toList, US_ASCII
 
Constructor Summary
MockHtmlEmailConcrete()
           
 
Method Summary
 List getBccList()
           
 List getCcList()
           
 javax.mail.internet.InternetAddress getFromAddress()
           
 String getHtmlMsg()
          Retrieve the html msg
 Map getInlineEmbeds()
           
 List getInlineImages()
          Deprecated. as of commons-email 1.1, replaced by getInlineEmbeds().
 String getMsg()
          Retrieve the message content
 String getTextMsg()
          Retrieve the text msg
 List getToList()
           
 
Methods inherited from class org.apache.commons.mail.HtmlEmail
buildMimeMessage, embed, embed, embed, embed, embed, embed, setHtmlMsg, setMsg, setTextMsg
 
Methods inherited from class org.apache.commons.mail.MultiPartEmail
addPart, addPart, addPart, attach, attach, attach, attach, attach, createBodyPart, createMimeMultipart, getContainer, getPrimaryBodyPart, getSubType, init, isBoolHasAttachments, isInitialized, setBoolHasAttachments, setInitialized, setSubType
 
Methods inherited from class org.apache.commons.mail.Email
addBcc, addBcc, addBcc, addCc, addCc, addCc, addHeader, addReplyTo, addReplyTo, addReplyTo, addTo, addTo, addTo, getHostName, getMailSession, getMimeMessage, getSentDate, getSmtpPort, getSslSmtpPort, getSubject, isSSL, isTLS, send, sendMimeMessage, setAuthentication, setAuthenticator, setBcc, setBounceAddress, setCc, setCharset, setContent, setContent, setDebug, setFrom, setFrom, setFrom, setHeaders, setHostName, setMailSession, setMailSessionFromJNDI, setPopBeforeSmtp, setReplyTo, setSentDate, setSmtpPort, setSSL, setSslSmtpPort, setSubject, setTLS, setTo, toInternetAddressArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockHtmlEmailConcrete

public MockHtmlEmailConcrete()
Method Detail

getMsg

public String getMsg()
Retrieve the message content

Returns:
Message Content

getTextMsg

public String getTextMsg()
Retrieve the text msg

Returns:
Message Content

getHtmlMsg

public String getHtmlMsg()
Retrieve the html msg

Returns:
Message Content

getInlineImages

public List getInlineImages()
Deprecated. as of commons-email 1.1, replaced by getInlineEmbeds().


getInlineEmbeds

public Map getInlineEmbeds()
Returns:
inlineEmbeds

getFromAddress

public javax.mail.internet.InternetAddress getFromAddress()
Overrides:
getFromAddress in class org.apache.commons.mail.Email
Returns:
fromAddress

getToList

public List getToList()
Returns:
toList

getBccList

public List getBccList()
Returns:
bccList

getCcList

public List getCcList()
Returns:
ccList


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.