|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.mail.FetchProfile
public class FetchProfile
A FetchProfile defines a list of message attributes that a client wishes to prefetch
from the server during a fetch operation.
Clients can either specify individual headers, or can reference common profiles
as defined by FetchProfile.Item
.
Nested Class Summary | |
---|---|
static class |
FetchProfile.Item
Inner class that defines sets of headers that are commonly bundled together in a FetchProfile. |
Constructor Summary | |
---|---|
FetchProfile()
|
Method Summary | |
---|---|
void |
add(FetchProfile.Item item)
Add a predefined profile of headers. |
void |
add(String header)
Add a specific header. |
boolean |
contains(FetchProfile.Item item)
Determine if the given profile item is already included. |
boolean |
contains(String header)
Determine if the specified header is already included. |
String[] |
getHeaderNames()
Get the headers that have already been included. |
FetchProfile.Item[] |
getItems()
Get the profile items already included. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FetchProfile()
Method Detail |
---|
public void add(FetchProfile.Item item)
item
- the profile to addpublic void add(String header)
header
- the header whose value should be prefetchedpublic boolean contains(FetchProfile.Item item)
item
- the profile to check for
public boolean contains(String header)
header
- the header to check for
public FetchProfile.Item[] getItems()
public String[] getHeaderNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |