|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.utils.StorageUtility
public final class StorageUtility
StorageUtility - Offers utility methods for both folder and message storage
| Field Summary | |
|---|---|
static javax.mail.Message[] |
EMPTY_MSGS
|
static int |
INDEX_CONFIRMED_HAM
|
static int |
INDEX_CONFIRMED_SPAM
|
static int |
INDEX_DRAFTS
|
static int |
INDEX_INBOX
|
static int |
INDEX_SENT
|
static int |
INDEX_SPAM
|
static int |
INDEX_TRASH
|
static int |
MAIL_PARAM_HARD_DELETE
|
static int |
UNLIMITED_QUOTA
|
| Method Summary | |
|---|---|
static java.lang.String |
getAllAddresses(javax.mail.internet.InternetAddress[] internetAddrs)
|
static java.lang.String[] |
getDefaultFolderNames(int accountId,
UserSettingMail usm)
Determines the default folder names (not fullnames). |
static java.lang.String[] |
getDefaultFolderNames(int accountId,
UserSettingMail usm,
boolean isSpamEnabled)
Determines the default folder names (not fullnames). |
static java.lang.String[] |
getDefaultFolderNames(java.lang.String trash,
java.lang.String sent,
java.lang.String drafts,
java.lang.String spam,
java.lang.String confirmedSpam,
java.lang.String confirmedHam,
boolean isSpamEnabled)
Deprecated. Use DefaultFolderNamesProvider instead |
static java.util.Map<HeaderName,java.lang.String> |
parseHeaders(byte[] headers)
Parses specified headers into a map |
static java.util.Map<HeaderName,java.lang.String> |
parseHeaders(java.lang.String headers)
Parses specified headers into a map |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INDEX_DRAFTS
public static final int INDEX_SENT
public static final int INDEX_SPAM
public static final int INDEX_TRASH
public static final int INDEX_CONFIRMED_SPAM
public static final int INDEX_CONFIRMED_HAM
public static final int INDEX_INBOX
public static final int MAIL_PARAM_HARD_DELETE
public static final int UNLIMITED_QUOTA
public static final javax.mail.Message[] EMPTY_MSGS
| Method Detail |
|---|
public static java.lang.String getAllAddresses(javax.mail.internet.InternetAddress[] internetAddrs)
public static java.util.Map<HeaderName,java.lang.String> parseHeaders(byte[] headers)
headers - The headers as raw bytes
Map containing the headerspublic static java.util.Map<HeaderName,java.lang.String> parseHeaders(java.lang.String headers)
headers - The headers as String
Map containing the headers
public static java.lang.String[] getDefaultFolderNames(int accountId,
UserSettingMail usm)
throws MailException
String indexes the names as given through
constants: INDEX_DRAFTS, INDEX_SENT, etc.
accountId - The account IDusm - The user's mail settings
String
MailException - If spam enablement/disablement cannot be determined
public static java.lang.String[] getDefaultFolderNames(int accountId,
UserSettingMail usm,
boolean isSpamEnabled)
throws MailException
String indexes the names as given through
constants: INDEX_DRAFTS, INDEX_SENT, etc.
accountId - The account IDusm - The user's mail settingsisSpamEnabled - true if spam is enabled for current user; otherwise false
String
MailException - If spam enablement/disablement cannot be determined
@Deprecated
public static java.lang.String[] getDefaultFolderNames(java.lang.String trash,
java.lang.String sent,
java.lang.String drafts,
java.lang.String spam,
java.lang.String confirmedSpam,
java.lang.String confirmedHam,
boolean isSpamEnabled)
throws MailConfigException
DefaultFolderNamesProvider instead
String indexes the names as given through
constants: INDEX_DRAFTS, INDEX_SENT, etc.
trash - The trash namesent - The sent namedrafts - The drafts namespam - The spam nameconfirmedSpam - The confirmed-spam nameconfirmedHam - The confirmed-ham nameisSpamEnabled - true if spam is enabled for current user; otherwise false
String
MailConfigException - If spam enablement/disablement cannot be determined
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||