Class FetchItem


  • public abstract class FetchItem
    extends Object
    Metadata describing a FETCH item. Note that the "name" field MUST be in uppercase.

    Since:
    JavaMail 1.4.6
    • Method Detail

      • getName

        public String getName()
      • parseItem

        public abstract Object parseItem​(FetchResponse r)
                                  throws ParsingException
        Parse the item into some kind of object appropriate for the item. Note that the item name will have been parsed and skipped already.
        Parameters:
        r - the response
        Returns:
        the fetch item
        Throws:
        ParsingException - for parsing failures