|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.email.MailUtils
public class MailUtils
Contains javax.mail helpers.
| Constructor Summary | |
|---|---|
MailUtils()
|
|
| Method Summary | |
|---|---|
static String |
getAttachmentName(String key,
Map<String,Part> attachments)
Check whether an attachment with the same name already exists, using a counter for override protection. |
static void |
getAttachments(Multipart content,
Map<String,Part> attachments)
|
static String |
internetAddressesToString(InternetAddress address)
|
static String |
internetAddressesToString(InternetAddress[] addresses)
|
static boolean |
isListHeader(String name)
Check whether a property name has the format associated with a list of header values |
static String |
mailAddressesToString(Address address)
|
static String |
mailAddressesToString(Address[] addresses)
|
static InternetAddress[] |
stringToInternetAddresses(String address)
|
static String |
toListHeader(String header)
Convert a header name to the property name associated with a list of header values (ie prepend the prefix) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailUtils()
| Method Detail |
|---|
public static String internetAddressesToString(InternetAddress[] addresses)
public static String internetAddressesToString(InternetAddress address)
public static String mailAddressesToString(Address[] addresses)
public static String mailAddressesToString(Address address)
public static InternetAddress[] stringToInternetAddresses(String address)
throws AddressException
AddressException
public static void getAttachments(Multipart content,
Map<String,Part> attachments)
throws MessagingException,
IOException
MessagingException
IOException
public static String getAttachmentName(String key,
Map<String,Part> attachments)
key - A attachment nameattachments - Map with attachments
public static boolean isListHeader(String name)
name - A property name
public static String toListHeader(String header)
header - A header name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||