public class FetchResponse extends IMAPResponse
Constructor | Description |
---|---|
FetchResponse(Protocol p) |
|
FetchResponse(IMAPResponse r) |
|
FetchResponse(IMAPResponse r,
FetchItem[] fitems) |
Construct a FetchResponse that handles the additional FetchItems.
|
Modifier and Type | Method | Description |
---|---|---|
Map<String,Object> |
getExtensionItems() |
Return a map of the extension items found in this fetch response.
|
Item |
getItem(int index) |
|
static <T extends Item> |
getItem(Response[] r,
int msgno,
Class<T> c) |
Return the first fetch response item of the given class
for the given message number.
|
<T extends Item> |
getItem(Class<T> c) |
|
int |
getItemCount() |
|
static <T extends Item> |
getItems(Response[] r,
int msgno,
Class<T> c) |
Return all fetch response items of the given class
for the given message number.
|
getKey, getNumber, keyEquals, readSimpleList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
byeResponse, getException, getRest, getTag, getType, isBAD, isBYE, isContinuation, isNextNonSpace, isNO, isOK, isSynthetic, isTagged, isUnTagged, peekByte, readAtom, readAtomString, readAtomStringList, readByte, readByteArray, readBytes, readLong, readNumber, readString, readString, readStringList, reset, skip, skipSpaces, skipToken, supportsUtf8, toString
public FetchResponse(Protocol p) throws IOException, ProtocolException
IOException
ProtocolException
public FetchResponse(IMAPResponse r) throws IOException, ProtocolException
IOException
ProtocolException
public FetchResponse(IMAPResponse r, FetchItem[] fitems) throws IOException, ProtocolException
r
- the IMAPResponsefitems
- the fetch itemsIOException
- for I/O errorsProtocolException
- for protocol failurespublic int getItemCount()
public Item getItem(int index)
public static <T extends Item> T getItem(Response[] r, int msgno, Class<T> c)
T
- the type of fetch itemr
- the responsesmsgno
- the message numberc
- the classpublic static <T extends Item> List<T> getItems(Response[] r, int msgno, Class<T> c)
T
- the type of fetch itemsr
- the responsesmsgno
- the message numberc
- the classCopyright © 2018 Oracle. All rights reserved.