| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private final FetchItem[] | |
| private static final char[] | |
| private Item[] | |
| private static final char[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | FetchResponse(IMAPResponse
the IMAPResponse r, FetchItem[] the fetch items fitems)Construct a FetchResponse that handles the additional FetchItems. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: Map of extension items, or null if noneReturn a map of the extension items found in this fetch response. |
| public Item | |
| public <T extends Item> T | |
| public static < the type of fetch item T extends Item> T | |
| public int | |
| public static < the type of fetch items T extends Item> List | |
| private boolean | |
| private boolean | |
| private String | |
| private void | |
| private boolean | |
| private Item | parseItem()
Parse the item at the current position in the buffer, skipping over the item if successful. |
| extensionItems | back to summary |
|---|---|
| private Map<String, Object> extensionItems | |
| fitems | back to summary |
|---|---|
| private final FetchItem[] fitems | |
| HEADER | back to summary |
|---|---|
| private static final char[] HEADER | |
| items | back to summary |
|---|---|
| private Item[] items | |
| TEXT | back to summary |
|---|---|
| private static final char[] TEXT | |
| FetchResponse | back to summary |
|---|---|
| public FetchResponse(Protocol p) throws IOException, ProtocolException | |
| FetchResponse | back to summary |
|---|---|
| public FetchResponse(IMAPResponse r) throws IOException, ProtocolException | |
| FetchResponse | back to summary |
|---|---|
| public FetchResponse(IMAPResponse r, FetchItem[] fitems) throws IOException, ProtocolException Construct a FetchResponse that handles the additional FetchItems.
| |
| getExtensionItems | back to summary |
|---|---|
| public Map Return a map of the extension items found in this fetch response. The map is indexed by extension item name. Callers should not modify the map. | |
| getItem | back to summary |
|---|---|
| public Item getItem(int index) | |
| getItem | back to summary |
|---|---|
| public <T extends Item> T getItem(Class<T> c) | |
| getItem | back to summary |
|---|---|
| public static <T extends Item> T getItem(Response[] r, int msgno, Class<T> c) Return the first fetch response item of the given class for the given message number. | |
| getItemCount | back to summary |
|---|---|
| public int getItemCount() | |
| getItems | back to summary |
|---|---|
| public static <T extends Item> List Return all fetch response items of the given class for the given message number. | |
| match | back to summary |
|---|---|
| private boolean match(char[] itemName) Does the current buffer match the given item name? itemName is the name of the IMAP item to compare against. NOTE that itemName *must* be all uppercase. If the match is successful, the buffer pointer (index) is incremented past the matched item. | |
| match | back to summary |
|---|---|
| private boolean match(String itemName) Does the current buffer match the given item name? itemName is the name of the IMAP item to compare against. NOTE that itemName *must* be all uppercase. If the match is successful, the buffer pointer (index) is incremented past the matched item. | |
| next20 | back to summary |
|---|---|
| private String next20() Return the next 20 characters in the buffer, for exception messages. | |
| parse | back to summary |
|---|---|
| private void parse() throws ParsingException | |
| parseExtensionItem | back to summary |
|---|---|
| private boolean parseExtensionItem() throws ParsingException If this item is a known extension item, parse it. | |
| parseItem | back to summary |
|---|---|
| private Item parseItem() throws ParsingException Parse the item at the current position in the buffer, skipping over the item if successful. Otherwise, return null and leave the buffer position unmodified.
| |