Class UDTAttachment

    • Field Detail

      • udt

        protected final UDTValue udt
        The content represented as UDTValue.
      • cleanup

        protected transient Cleanup<IOException> cleanup
        The clean-up for closing the UDTValue as post-mortem task for this instance.
    • Constructor Detail

      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             UDTValue udt)
        Creates an attachment having the designated name, description and content. The content type is set to "application/octet-stream".
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             UDTValue udt,
                             boolean inline)
        Creates an attachment having the designated name, description and content. The content type is set to "application/octet-stream".
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
        inline - Whether to inline this attachment in case of an HTML message using the designated name.
      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             UDTValue udt,
                             String inlineName)
        Creates an attachment having the designated name, description and content. The content type is set to "application/octet-stream".
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
        inlineName - The name used in the corresponding HTML message to refer to this attachment to be inlined. Use null to not inline the attachment.
      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             String contentType,
                             UDTValue udt)
        Creates an attachment having the designated name, description, content type (MIME) and content.
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        contentType - The content type (MIME) of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             String contentType,
                             UDTValue udt,
                             boolean inline)
        Creates an attachment having the designated name, description, content type (MIME) and content.
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        contentType - The content type (MIME) of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
        inline - Whether to inline this attachment in case of an HTML message using the designated name.
      • UDTAttachment

        public UDTAttachment​(String name,
                             String description,
                             String contentType,
                             UDTValue udt,
                             String inlineName)
        Creates an attachment having the designated name, description, content type (MIME) and content.
        Parameters:
        name - The name of the attachment.
        description - The description of the attachment.
        contentType - The content type (MIME) of the attachment.
        udt - The content of the attachment represented as UDTValue. The caller is responsible for closing.
        inlineName - The name used in the corresponding HTML message to refer to this attachment to be inlined. Use null to not inline the attachment.