Enum IMailAttachment.ContentDispositionType

    • Enum Constant Detail

      • INLINE

        public static final IMailAttachment.ContentDispositionType INLINE
        Indicates the attachment is intended to be displayed automatically upon display of the message.
        Since:
        14.0.0
        See Also:
        RFC 2183, IMailAttachment#setContentDisposition
      • ATTACHMENT

        public static final IMailAttachment.ContentDispositionType ATTACHMENT
        Indicates the attachment is separated from the main body of the mail message, and its display should not be automatic, but contingent upon some further action of the user.
        Since:
        14.0.0
        See Also:
        RFC 2183, IMailAttachment#setContentDisposition
    • Method Detail

      • values

        public static IMailAttachment.ContentDispositionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IMailAttachment.ContentDispositionType c : IMailAttachment.ContentDispositionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IMailAttachment.ContentDispositionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null