public class FetchProfile
extends java.lang.Object
FetchProfile.Item
.Modifier and Type | Class and Description |
---|---|
static class |
FetchProfile.Item
Inner class that defines sets of headers that are commonly bundled together
in a FetchProfile.
|
Constructor and Description |
---|
FetchProfile() |
Modifier and Type | Method and Description |
---|---|
void |
add(FetchProfile.Item item)
Add a predefined profile of headers.
|
void |
add(java.lang.String header)
Add a specific header.
|
boolean |
contains(FetchProfile.Item item)
Determine if the given profile item is already included.
|
boolean |
contains(java.lang.String header)
Determine if the specified header is already included.
|
java.lang.String[] |
getHeaderNames()
Get the headers that have already been included.
|
FetchProfile.Item[] |
getItems()
Get the profile items already included.
|
public void add(FetchProfile.Item item)
item
- the profile to addpublic void add(java.lang.String header)
header
- the header whose value should be prefetchedpublic boolean contains(FetchProfile.Item item)
item
- the profile to check forpublic boolean contains(java.lang.String header)
header
- the header to check forpublic FetchProfile.Item[] getItems()
public java.lang.String[] getHeaderNames()