Package javax.mail
Class FetchProfile
- java.lang.Object
-
- javax.mail.FetchProfile
-
public class FetchProfile extends java.lang.Object
Specification of the facets of a message that are to be preloaded from the server.- Version:
- 1.4
- Author:
- Chris Burdess
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FetchProfile.Item
Base class of all the facets of a message that can be fetched.
-
Constructor Summary
Constructors Constructor Description FetchProfile()
Create an empty fetch profile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.lang.String header)
Add the specified header name.void
add(FetchProfile.Item item)
Add the given item.boolean
contains(java.lang.String header)
Indicates whether the fetch profile contains the given header name.boolean
contains(FetchProfile.Item item)
Indicates whether the fetch profile contains the specified item.java.lang.String[]
getHeaderNames()
Get the names of the header fields in this profile.FetchProfile.Item[]
getItems()
Get the items in this profile.
-
-
-
Method Detail
-
add
public void add(FetchProfile.Item item)
Add the given item.
-
add
public void add(java.lang.String header)
Add the specified header name.
-
contains
public boolean contains(FetchProfile.Item item)
Indicates whether the fetch profile contains the specified item.
-
contains
public boolean contains(java.lang.String header)
Indicates whether the fetch profile contains the given header name.
-
getItems
public FetchProfile.Item[] getItems()
Get the items in this profile.
-
getHeaderNames
public java.lang.String[] getHeaderNames()
Get the names of the header fields in this profile.
-
-