public class MultiPayloadMessageMimeEncoder extends MimeEncoderImpl
EXCEPTION_CONTENT_ID, METADATA_CONTENT_ID, PAYLOAD_CONTENT_ID
log
Constructor and Description |
---|
MultiPayloadMessageMimeEncoder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addPartsToMessage(BodyPartIterator input,
MultiPayloadAdaptrisMessage message) |
protected javax.mail.internet.MimeBodyPart |
payloadAsMimePart(MultiPayloadAdaptrisMessage m) |
AdaptrisMessage |
readMessage(java.lang.Object source)
Decode the supplied Object into an
AdaptrisMessage object. |
void |
writeMessage(AdaptrisMessage msg,
java.lang.Object target)
Encode the
AdaptrisMessage object and write it to the supplied
target |
addPartsToMessage, asMimePart, getMetadata, getMetadataEncoding, getMetadataSet, getPayloadEncoding, getRetainUniqueId, payloadAsMimePart, retainUniqueId, setMetadataEncoding, setPayloadEncoding, setRetainUniqueId
currentMessageFactory, registerMessageFactory
public void writeMessage(AdaptrisMessage msg, java.lang.Object target) throws CoreException
AdaptrisMessageEncoder
AdaptrisMessage
object and write it to the supplied
targetmsg
- the AdaptrisMessage
to be encodedtarget
- the destination to write to.CoreException
- wrapping any underlying Exceptions that may occurprotected javax.mail.internet.MimeBodyPart payloadAsMimePart(MultiPayloadAdaptrisMessage m) throws java.lang.Exception
java.lang.Exception
public AdaptrisMessage readMessage(java.lang.Object source) throws CoreException
AdaptrisMessageEncoder
AdaptrisMessage
object.source
- the object to be decoded.AdaptrisMessage
created from the object.CoreException
- wrapping any underlying Exceptions that may occurprotected boolean addPartsToMessage(BodyPartIterator input, MultiPayloadAdaptrisMessage message) throws java.io.IOException, javax.mail.MessagingException
java.io.IOException
javax.mail.MessagingException