Package org.frankframework.filesystem
Class MailFileSystemUtils
java.lang.Object
org.frankframework.filesystem.MailFileSystemUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static org.apache.logging.log4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <M,
A> void addAttachmentInfo
(IMailFileSystem<M, A> fileSystem, A attachment, SaxElementBuilder attachmentsXml) static <M,
A> void addEmailInfo
(IMailFileSystem<M, A> fileSystem, M emailMessage, SaxElementBuilder emailXml) static <M,
A> void addEmailInfoSimple
(IMailFileSystem<M, A> fileSystem, M emailMessage, SaxElementBuilder emailXml) static void
addPropertyAsHeader
(SaxElementBuilder xml, String elementName, Object property) static void
addPropertyAsHeader
(SaxElementBuilder xml, String elementName, String attributeName, String attributeValue, Object property) static void
addRecipientProperty
(SaxElementBuilder recipientsXml, Map<String, Object> properties, String key) static String
findBestReplyAddress
(Map<String, Object> headers, String replyAddressFields) static String
getValidAddress
(String type, String address) static String
getValidAddressFromHeader
(String key, Map<String, Object> headers)
-
Field Details
-
log
protected static org.apache.logging.log4j.Logger log -
specialHeaders
-
-
Constructor Details
-
MailFileSystemUtils
public MailFileSystemUtils()
-
-
Method Details
-
addEmailInfoSimple
public static <M,A> void addEmailInfoSimple(IMailFileSystem<M, A> fileSystem, M emailMessage, SaxElementBuilder emailXml) throws FileSystemException, SAXException- Throws:
FileSystemException
SAXException
-
addPropertyAsHeader
public static void addPropertyAsHeader(SaxElementBuilder xml, String elementName, Object property) throws SAXException - Throws:
SAXException
-
addPropertyAsHeader
public static void addPropertyAsHeader(SaxElementBuilder xml, String elementName, String attributeName, String attributeValue, Object property) throws SAXException - Throws:
SAXException
-
addRecipientProperty
public static void addRecipientProperty(SaxElementBuilder recipientsXml, Map<String, Object> properties, String key) throws SAXException- Throws:
SAXException
-
addEmailInfo
public static <M,A> void addEmailInfo(IMailFileSystem<M, A> fileSystem, M emailMessage, SaxElementBuilder emailXml) throws FileSystemException, SAXException- Throws:
FileSystemException
SAXException
-
addAttachmentInfo
public static <M,A> void addAttachmentInfo(IMailFileSystem<M, A> fileSystem, A attachment, SaxElementBuilder attachmentsXml) throws FileSystemException, SAXException- Throws:
FileSystemException
SAXException
-
findBestReplyAddress
-
getValidAddressFromHeader
-
getValidAddress
-