Package org.apache.ofbiz.service.mail
Class MimeMessageWrapper
- java.lang.Object
-
- org.apache.ofbiz.service.mail.MimeMessageWrapper
-
- All Implemented Interfaces:
java.io.Serializable
public class MimeMessageWrapper extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
contentType
protected java.util.Properties
mailProperties
protected MimeMessage
message
static java.lang.String
module
protected int
parts
protected byte[]
serializedBytes
protected Session
session
-
Constructor Summary
Constructors Constructor Description MimeMessageWrapper(Session session)
MimeMessageWrapper(Session session, MimeMessage message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAttachmentIndexes()
Address[]
getBcc()
protected java.nio.ByteBuffer
getByteBufferFromStream(java.io.InputStream stream)
Address[]
getCc()
protected java.lang.String
getContentText(java.lang.Object content)
java.lang.String
getContentType()
java.lang.String
getFirstHeader(java.lang.String header)
Address[]
getFrom()
java.lang.String[]
getHeader(java.lang.String header)
int
getMainPartCount()
MimeMessage
getMessage()
java.lang.String
getMessageBody()
java.lang.String
getMessageBodyContentType()
java.lang.String
getMessageId()
java.lang.String
getMessageRawText()
BodyPart
getPart(java.lang.String indexStr)
java.nio.ByteBuffer
getPartByteBuffer(java.lang.String index)
java.lang.String
getPartContentType(java.lang.String index)
java.lang.String
getPartDescription(java.lang.String index)
java.lang.String
getPartDisposition(java.lang.String index)
java.lang.String
getPartFilename(java.lang.String index)
java.lang.String
getPartRawText(java.lang.String index)
java.lang.String
getPartText(java.lang.String index)
java.sql.Timestamp
getReceivedDate()
java.sql.Timestamp
getSentDate()
Session
getSession()
java.lang.String
getSubject()
int
getSubPartCount(int index)
protected java.lang.String
getTextFromStream(java.io.InputStream stream)
Address[]
getTo()
void
setMessage(MimeMessage message)
void
setSession(Session session)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
message
protected transient MimeMessage message
-
session
protected transient Session session
-
mailProperties
protected java.util.Properties mailProperties
-
contentType
protected java.lang.String contentType
-
serializedBytes
protected byte[] serializedBytes
-
parts
protected int parts
-
-
Constructor Detail
-
MimeMessageWrapper
public MimeMessageWrapper(Session session, MimeMessage message)
-
MimeMessageWrapper
public MimeMessageWrapper(Session session)
-
-
Method Detail
-
setSession
public void setSession(Session session)
-
getSession
public Session getSession()
-
setMessage
public void setMessage(MimeMessage message)
-
getMessage
public MimeMessage getMessage()
-
getFirstHeader
public java.lang.String getFirstHeader(java.lang.String header)
-
getHeader
public java.lang.String[] getHeader(java.lang.String header)
-
getFrom
public Address[] getFrom()
-
getTo
public Address[] getTo()
-
getCc
public Address[] getCc()
-
getBcc
public Address[] getBcc()
-
getSubject
public java.lang.String getSubject()
-
getMessageId
public java.lang.String getMessageId()
-
getSentDate
public java.sql.Timestamp getSentDate()
-
getReceivedDate
public java.sql.Timestamp getReceivedDate()
-
getContentType
public java.lang.String getContentType()
-
getMainPartCount
public int getMainPartCount()
-
getSubPartCount
public int getSubPartCount(int index)
-
getAttachmentIndexes
public java.util.List<java.lang.String> getAttachmentIndexes()
-
getMessageBody
public java.lang.String getMessageBody()
-
getMessageBodyContentType
public java.lang.String getMessageBodyContentType()
-
getMessageRawText
public java.lang.String getMessageRawText()
-
getPartDescription
public java.lang.String getPartDescription(java.lang.String index)
-
getPartContentType
public java.lang.String getPartContentType(java.lang.String index)
-
getPartDisposition
public java.lang.String getPartDisposition(java.lang.String index)
-
getPartFilename
public java.lang.String getPartFilename(java.lang.String index)
-
getPartByteBuffer
public java.nio.ByteBuffer getPartByteBuffer(java.lang.String index)
-
getPartText
public java.lang.String getPartText(java.lang.String index)
-
getPartRawText
public java.lang.String getPartRawText(java.lang.String index)
-
getPart
public BodyPart getPart(java.lang.String indexStr)
-
getContentText
protected java.lang.String getContentText(java.lang.Object content)
-
getTextFromStream
protected java.lang.String getTextFromStream(java.io.InputStream stream)
-
getByteBufferFromStream
protected java.nio.ByteBuffer getByteBufferFromStream(java.io.InputStream stream)
-
-