public class FaxToMailServiceUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
IMG_SRC_PATTERN |
| Constructor and Description |
|---|
FaxToMailServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addFaxDomainToFaxNumber(String faxNumber,
MailFolder folder) |
static <T extends Enum<T>> |
contains(Collection<T> coll,
T value)
Return true if given collection is not null and contains requested value.
|
static String |
encodeImageSourcesInEmail(String emailContent)
Sometimes, the urls of the images in an email contains spaces.
|
static Charset |
getCharset(javax.mail.Part part) |
static String |
getFullMailFolderPath(MailFolder folder)
Compute mail folder path (separated by /) from root to current.
|
public static final Pattern IMG_SRC_PATTERN
public static String addFaxDomainToFaxNumber(String faxNumber, MailFolder folder)
public static Charset getCharset(javax.mail.Part part) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic static <T extends Enum<T>> boolean contains(Collection<T> coll, T value)
coll - collectionvalue - valuepublic static String getFullMailFolderPath(MailFolder folder)
folder - folder to get pathpublic static String encodeImageSourcesInEmail(String emailContent) throws org.apache.commons.httpclient.URIException
emailContent - the content of the emailorg.apache.commons.httpclient.URIExceptionCopyright © 2014–2015 CodeLutin. All rights reserved.