public abstract class PartModifier
extends java.lang.Object
PartModifier
- Abstract class to modify a mail part prior to parsing it by MailMessageParser
.Constructor and Description |
---|
PartModifier() |
Modifier and Type | Method and Description |
---|---|
static PartModifier |
getInstance() |
static void |
init(java.lang.String className)
Initializes part modifier
|
abstract MailPart |
modifyPart(MailPart mailPart)
Performs possible modifications on specified mail part
|
public abstract MailPart modifyPart(MailPart mailPart) throws com.openexchange.exception.OXException
mailPart
- The mail part to modifycom.openexchange.exception.OXException
- If a mail error occurspublic static final void init(java.lang.String className) throws com.openexchange.exception.OXException
className
- The class name of part modifier implementationcom.openexchange.exception.OXException
- If part modifier cannot be initializedpublic static final PartModifier getInstance()