public abstract class MimeEncoderImpl<T,S> extends AdaptrisMessageEncoderImp<T,S>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
EXCEPTION_CONTENT_ID |
protected static java.lang.String |
METADATA_CONTENT_ID |
protected static java.lang.String |
PAYLOAD_CONTENT_ID |
log
Constructor and Description |
---|
MimeEncoderImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPartsToMessage(BodyPartIterator input,
AdaptrisMessage msg) |
protected javax.mail.internet.MimeBodyPart |
asMimePart(java.lang.Exception e) |
protected static byte[] |
getMetadata(AdaptrisMessage msg) |
java.lang.String |
getMetadataEncoding()
Returns the metadata MIME encoding.
|
protected static java.util.Set<MetadataElement> |
getMetadataSet(java.io.InputStream in) |
java.lang.String |
getPayloadEncoding()
Returns the payload MIME encoding.
|
java.lang.Boolean |
getRetainUniqueId()
Returns true if the original ID of a decoded message should be retained for the new message.
|
protected javax.mail.internet.MimeBodyPart |
payloadAsMimePart(AdaptrisMessage m) |
boolean |
retainUniqueId() |
void |
setMetadataEncoding(java.lang.String encoding)
Sets the metadata MIME encoding.
|
void |
setPayloadEncoding(java.lang.String encoding)
Sets the payload MIME encoding.
|
void |
setRetainUniqueId(java.lang.Boolean b)
Sets whether the original ID of a decoded message should be retained for the new message.
|
currentMessageFactory, registerMessageFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readMessage, writeMessage
protected static final java.lang.String PAYLOAD_CONTENT_ID
protected static final java.lang.String METADATA_CONTENT_ID
protected static final java.lang.String EXCEPTION_CONTENT_ID
protected javax.mail.internet.MimeBodyPart payloadAsMimePart(AdaptrisMessage m) throws java.lang.Exception
java.lang.Exception
protected javax.mail.internet.MimeBodyPart asMimePart(java.lang.Exception e) throws java.lang.Exception
java.lang.Exception
protected void addPartsToMessage(BodyPartIterator input, AdaptrisMessage msg) throws java.io.IOException, javax.mail.MessagingException
java.io.IOException
javax.mail.MessagingException
public java.lang.String getPayloadEncoding()
Returns the payload MIME encoding.
public java.lang.String getMetadataEncoding()
Returns the metadata MIME encoding.
public void setPayloadEncoding(java.lang.String encoding)
Sets the payload MIME encoding.
encoding
- the payload MIME encodingpublic void setMetadataEncoding(java.lang.String encoding)
Sets the metadata MIME encoding.
encoding
- the metadata MIME encodingpublic java.lang.Boolean getRetainUniqueId()
Returns true if the original ID of a decoded message should be retained for the new message.
public void setRetainUniqueId(java.lang.Boolean b)
Sets whether the original ID of a decoded message should be retained for the new message.
b
- true if the original ID should be retainedpublic boolean retainUniqueId()
protected static byte[] getMetadata(AdaptrisMessage msg) throws java.io.IOException
java.io.IOException
protected static java.util.Set<MetadataElement> getMetadataSet(java.io.InputStream in) throws java.io.IOException
java.io.IOException