javax.mail

Class 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

static class
FetchProfile.Item
Base class of all the facets of a message that can be fetched.

Constructor Summary

FetchProfile()
Create an empty fetch profile.

Method Summary

void
add(String header)
Add the specified header name.
void
add(FetchProfile.Item item)
Add the given item.
boolean
contains(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.
String[]
getHeaderNames()
Get the names of the header fields in this profile.
FetchProfile.Item[]
getItems()
Get the items in this profile.

Constructor Details

FetchProfile

public FetchProfile()
Create an empty fetch profile.

Method Details

add

public void add(String header)
Add the specified header name.

add

public void add(FetchProfile.Item item)
Add the given item.

contains

public boolean contains(String header)
Indicates whether the fetch profile contains the given header name.

contains

public boolean contains(FetchProfile.Item item)
Indicates whether the fetch profile contains the specified item.

getHeaderNames

public String[] getHeaderNames()
Get the names of the header fields in this profile.

getItems

public FetchProfile.Item[] getItems()
Get the items in this profile.

© Copyright 2003, 2004 The Free Software Foundation, All rights reserved