|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mailboxmanager.util.MessageResultUtils
public class MessageResultUtils
| Constructor Summary | |
|---|---|
MessageResultUtils()
|
|
| Method Summary | |
|---|---|
static java.util.List |
getAll(java.util.Iterator iterator)
Gets all header lines. |
static java.util.List |
getMatching(java.util.Collection names,
java.util.Iterator iterator)
Gets header lines whose header names matches (ignoring case) any of those given. |
static java.util.List |
getMatching(java.lang.String[] names,
java.util.Iterator iterator)
Gets header lines whose header names matches (ignoring case) any of those given. |
static MessageResult.Header |
getMatching(java.lang.String name,
java.util.Iterator iterator)
Gets a header matching the given name. |
static java.util.List |
getNotMatching(java.util.Collection names,
java.util.Iterator iterator)
Gets header lines whose header names matches (ignoring case) any of those given. |
static java.util.List |
getNotMatching(java.lang.String[] names,
java.util.Iterator iterator)
Gets header lines whose header name fails to match (ignoring case) all of the given names. |
static boolean |
isBodyContentIncluded(MessageResult message)
Is MessageResult.FetchGroup.BODY_CONTENT included in these results? |
static boolean |
isFlagsIncluded(MessageResult message)
Is MessageResult.FetchGroup.FLAGS included in these results? |
static boolean |
isFullContentIncluded(MessageResult message)
Is MessageResult.FetchGroup.FULL_CONTENT included in these results? |
static boolean |
isHeadersIncluded(MessageResult message)
Is MessageResult.FetchGroup.HEADERS included in these results? |
static boolean |
isIncluded(MessageResult message,
int datum)
Is the given datum included in these results? |
static boolean |
isInternalDateIncluded(MessageResult message)
Is MessageResult.FetchGroup.INTERNAL_DATE included in these results? |
static boolean |
isSizeIncluded(MessageResult message)
Is MessageResult.FetchGroup.SIZE included in these results? |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageResultUtils()
| Method Detail |
|---|
public static java.util.List getAll(java.util.Iterator iterator)
iterator - MessageResult.Header Iterator
List of MessageResult.Header's,
in their natural order
- Throws:
javax.mail.MessagingException
public static java.util.List getMatching(java.lang.String[] names,
java.util.Iterator iterator)
throws javax.mail.MessagingException
names - header names to be matched, not nulliterator - MessageResult.Header Iterator
List of MessageResult.Header's, in
their natural order
javax.mail.MessagingException
public static java.util.List getMatching(java.util.Collection names,
java.util.Iterator iterator)
throws javax.mail.MessagingException
names - header names to be matched, not nulliterator - MessageResult.Header Iterator
List of MessageResult.Header's, in
their natural order
javax.mail.MessagingException
public static java.util.List getNotMatching(java.util.Collection names,
java.util.Iterator iterator)
throws javax.mail.MessagingException
names - header names to be matched, not nulliterator - MessageResult.Header Iterator
List of MessageResult.Header's, in
their natural order
javax.mail.MessagingException
public static MessageResult.Header getMatching(java.lang.String name,
java.util.Iterator iterator)
throws javax.mail.MessagingException
name - name to be matched, not nulliterator - Iterator of MessageResult.Header's,
not null
MessageResult.Header, or null if the header does
not exist
javax.mail.MessagingException
public static java.util.List getNotMatching(java.lang.String[] names,
java.util.Iterator iterator)
throws javax.mail.MessagingException
names - header names, not nulliterator - MessageResult.Header Iterator
List of @MessageResult.Header's, in their natural order
javax.mail.MessagingException
public static boolean isIncluded(MessageResult message,
int datum)
message - MessageResult, possibly nulldatum - MessageResult datum constant
MessageResult includes the given datum,
false if MessageResult is null or does not contain
this datumpublic static boolean isBodyContentIncluded(MessageResult message)
MessageResult.FetchGroup.BODY_CONTENT included in these results?
message - MessageResult, possibly null
MessageResult includes BODY_CONTENT, false
if MessageResult is null or does not contain
BODY_CONTENTisIncluded(MessageResult, int)public static boolean isFlagsIncluded(MessageResult message)
MessageResult.FetchGroup.FLAGS included in these results?
message - MessageResult, possibly null
MessageResult includes FLAGS, false if
MessageResult is null or does not contain FLAGSisIncluded(MessageResult, int)public static boolean isFullContentIncluded(MessageResult message)
MessageResult.FetchGroup.FULL_CONTENT included in these results?
message - MessageResult, possibly null
MessageResult includes FULL_CONTENT, false
if MessageResult is null or does not contain
FULL_CONTENTisIncluded(MessageResult, int)public static boolean isHeadersIncluded(MessageResult message)
MessageResult.FetchGroup.HEADERS included in these results?
message - MessageResult, possibly null
MessageResult includes HEADERS, false if
MessageResult is null or does not contain HEADERSisIncluded(MessageResult, int)public static boolean isInternalDateIncluded(MessageResult message)
MessageResult.FetchGroup.INTERNAL_DATE included in these results?
message - MessageResult, possibly null
MessageResult includes INTERNAL_DATE,
false if MessageResult is null or does not contain
INTERNAL_DATEisIncluded(MessageResult, int)public static boolean isSizeIncluded(MessageResult message)
MessageResult.FetchGroup.SIZE included in these results?
message - MessageResult, possibly null
MessageResult includes SIZE, false if
MessageResult is null or does not contain SIZEisIncluded(MessageResult, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||