public class MailFileSystemUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
log |
static List<String> |
specialHeaders |
Constructor and Description |
---|
MailFileSystemUtils() |
Modifier and Type | Method and Description |
---|---|
static <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) |
public static <M,A> void addEmailInfoSimple(IMailFileSystem<M,A> fileSystem, M emailMessage, SaxElementBuilder emailXml) throws FileSystemException, SAXException
FileSystemException
SAXException
public static void addPropertyAsHeader(SaxElementBuilder xml, String elementName, Object property) throws SAXException
SAXException
public static void addPropertyAsHeader(SaxElementBuilder xml, String elementName, String attributeName, String attributeValue, Object property) throws SAXException
SAXException
public static void addRecipientProperty(SaxElementBuilder recipientsXml, Map<String,Object> properties, String key) throws SAXException
SAXException
public static <M,A> void addEmailInfo(IMailFileSystem<M,A> fileSystem, M emailMessage, SaxElementBuilder emailXml) throws FileSystemException, SAXException
FileSystemException
SAXException
public static <M,A> void addAttachmentInfo(IMailFileSystem<M,A> fileSystem, A attachment, SaxElementBuilder attachmentsXml) throws FileSystemException, SAXException
FileSystemException
SAXException
public static String findBestReplyAddress(Map<String,Object> headers, String replyAddressFields)
public static String getValidAddressFromHeader(String key, Map<String,Object> headers)
Copyright © 2023 Frank!Framework. All rights reserved.