Package de.ihrigb.fwla.mail
Class TextEmailBodyConverter
java.lang.Object
de.ihrigb.fwla.mail.TextEmailBodyConverter
- All Implemented Interfaces:
EmailBodyConverter<String>
public class TextEmailBodyConverter extends Object implements EmailBodyConverter<String>
Searches for a 'text/*' part in the email and returns it. Prefers html over plain.
-
Constructor Summary
Constructors Constructor Description TextEmailBodyConverter() -
Method Summary
-
Constructor Details
-
TextEmailBodyConverter
public TextEmailBodyConverter()
-
-
Method Details
-
convert
Description copied from interface:EmailBodyConverterConvert the received message to the desired format. It may throwEmailBodyConvertionExceptionupon failure.- Specified by:
convertin interfaceEmailBodyConverter<String>- Parameters:
mimeMessage- the mime message to be converted- Returns:
- the converted value
-