public class DontTouchHandler extends DefaultEntityBuilder implements IMailRewriter
Constructor and Description |
---|
DontTouchHandler(org.apache.james.mime4j.dom.Message entity,
org.apache.james.mime4j.message.BodyFactory bodyFactory,
org.apache.james.mime4j.dom.address.Mailbox from) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.james.mime4j.dom.Message |
firstRewrite(org.apache.james.mime4j.dom.Message parsed) |
<T> T |
renderAs(java.lang.Class<T> klass) |
java.io.InputStream |
renderAsMimeStream() |
void |
rewrite()
This must be called on
IRenderableMessage.renderAsMimeStream()
call |
body, endBodyPart, endHeader, endMessage, endMultipart, epilogue, field, getBodyFactory, postBody, postMultipart, preamble, preMultipart, raw, startBodyPart, startHeader, startMessage, startMultipart
public DontTouchHandler(org.apache.james.mime4j.dom.Message entity, org.apache.james.mime4j.message.BodyFactory bodyFactory, org.apache.james.mime4j.dom.address.Mailbox from)
public java.io.InputStream renderAsMimeStream() throws java.lang.Exception
renderAsMimeStream
in interface IRenderableMessage
java.lang.Exception
public final void rewrite()
IMailRewriter
IRenderableMessage.renderAsMimeStream()
callrewrite
in interface IMailRewriter
protected org.apache.james.mime4j.dom.Message firstRewrite(org.apache.james.mime4j.dom.Message parsed)
public <T> T renderAs(java.lang.Class<T> klass) throws java.lang.Exception
renderAs
in interface IRenderableMessage
java.lang.Exception
Copyright © 2021. All Rights Reserved.