Class FetchItem


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

    Since:
    JavaMail 1.4.6
    • Constructor Detail

      • FetchItem

        public FetchItem​(java.lang.String name,
                         FetchProfile.Item fetchProfileItem)
    • Method Detail

      • getName

        public java.lang.String getName()
      • parseItem

        public abstract java.lang.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