Package org.javlo.external.agitos.dkim
Class SMTPDKIMMessage
- java.lang.Object
-
- javax.mail.Message
-
- javax.mail.internet.MimeMessage
-
- com.sun.mail.smtp.SMTPMessage
-
- org.javlo.external.agitos.dkim.SMTPDKIMMessage
-
- All Implemented Interfaces:
javax.mail.internet.MimePart,javax.mail.Part
public class SMTPDKIMMessage extends com.sun.mail.smtp.SMTPMessage
-
-
Constructor Summary
Constructors Constructor Description SMTPDKIMMessage(javax.mail.internet.MimeMessage message, DKIMSigner signer)SMTPDKIMMessage(javax.mail.Session session, InputStream is, DKIMSigner signer)SMTPDKIMMessage(javax.mail.Session session, DKIMSigner signer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncodedBody()voidsetAllow8bitMIME(boolean allow)voidsetEncodedBody(String encodedBody)voidwriteTo(OutputStream os, String[] ignoreList)Output the message as an RFC 822 format stream, without specified headers.-
Methods inherited from class com.sun.mail.smtp.SMTPMessage
getAllow8bitMIME, getEnvelopeFrom, getMailExtension, getNotifyOptions, getReturnOption, getSendPartial, getSubmitter, setEnvelopeFrom, setMailExtension, setNotifyOptions, setReturnOption, setSendPartial, setSubmitter
-
Methods inherited from class javax.mail.internet.MimeMessage
addFrom, addHeader, addHeaderLine, addRecipients, addRecipients, createInternetHeaders, createMimeMessage, getAllHeaderLines, getAllHeaders, getAllRecipients, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getFlags, getFrom, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getMessageID, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getReceivedDate, getRecipients, getReplyTo, getSender, getSentDate, getSize, getSubject, isMimeType, isSet, parse, removeHeader, reply, saveChanges, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setFlags, setFrom, setFrom, setHeader, setRecipients, setRecipients, setReplyTo, setSender, setSentDate, setSubject, setSubject, setText, setText, setText, updateHeaders, updateMessageID, writeTo
-
-
-
-
Constructor Detail
-
SMTPDKIMMessage
public SMTPDKIMMessage(javax.mail.Session session, DKIMSigner signer)
-
SMTPDKIMMessage
public SMTPDKIMMessage(javax.mail.internet.MimeMessage message, DKIMSigner signer) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
SMTPDKIMMessage
public SMTPDKIMMessage(javax.mail.Session session, InputStream is, DKIMSigner signer) throws javax.mail.MessagingException- Throws:
javax.mail.MessagingException
-
-
Method Detail
-
writeTo
public void writeTo(OutputStream os, String[] ignoreList) throws IOException, javax.mail.MessagingException
Output the message as an RFC 822 format stream, without specified headers. If thesavedflag is not set, thesaveChangesmethod is called. If themodifiedflag is not set and thecontentarray is not null, thecontentarray is written directly, after writing the appropriate message headers.- Overrides:
writeToin classjavax.mail.internet.MimeMessage- Throws:
javax.mail.MessagingExceptionIOException- if an error occurs writing to the stream or if an error is generated by the javax.activation layer.- See Also:
This method enhances the JavaMail method MimeMessage.writeTo(OutputStream os String[] ignoreList); See the according Sun Licence, this contribution is CDDL.
-
getEncodedBody
public String getEncodedBody()
-
setEncodedBody
public void setEncodedBody(String encodedBody)
-
setAllow8bitMIME
public void setAllow8bitMIME(boolean allow)
- Overrides:
setAllow8bitMIMEin classcom.sun.mail.smtp.SMTPMessage
-
-