com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ContentDisposition



  • public class ContentDisposition
    extends Object

    Represents a Content-Disposition header.

    • Constructor Detail

      • ContentDisposition

        public ContentDisposition()

        Initializes a new instance of the ContentDisposition class.

      • ContentDisposition

        public ContentDisposition(String disposition)

        Initializes a new instance of the ContentDisposition class.

        Parameters:
        disposition - A value that contains the disposition.
    • Method Detail

      • getDispositionType

        public String getDispositionType()

        Gets or sets the type of the disposition.

        Value: The String that contains the disposition type.
        Returns:
        a String object.
      • setDispositionType

        public void setDispositionType(String value)

        Gets or sets the type of the disposition.

        Value: The String that contains the disposition type.
        Parameters:
        value - a String object.
      • getParameters

        public com.aspose.ms.System.Collections.Specialized.StringDictionary getParameters()

        Gets the parameters.

        Value: A StringDictionary that contains parameter name/value pairs.
        Returns:
        a StringDictionary object.
      • getFileName

        public String getFileName()

        Gets or sets the file name for an attachment.

        Value: The name of the file.
        Returns:
        a String object.
      • setFileName

        public void setFileName(String value)

        Gets or sets the file name for an attachment.

        Value: The name of the file.
        Parameters:
        value - a String object.
      • getCreationDate

        public Date getCreationDate()

        Gets or sets the creation date.

        Value: A DateTime value that indicates the file creation date; otherwise, MinValue if no date was specified.
        Returns:
        A DateTime value that indicates the file creation date; otherwise, MinValue if no date was specified.
      • setCreationDate

        public void setCreationDate(Date value)

        Gets or sets the creation date.

        Value: A DateTime value that indicates the file creation date; otherwise, MinValue if no date was specified.
        Parameters:
        value - A DateTime value that indicates the file creation date.
      • getModificationDate

        public Date getModificationDate()

        Gets or sets the modification date.

        Value: A DateTime value that indicates the file modification date; otherwise, MinValue if no date was specified.
        Returns:
        A DateTime value that indicates the file modification date; otherwise, MinValue if no date was specified.
      • setModificationDate

        public void setModificationDate(Date value)

        Gets or sets the modification date.

        Value: A DateTime value that indicates the file modification date; otherwise, MinValue if no date was specified.
        Parameters:
        value - A DateTime value that indicates the file modification date.
      • getInline

        public boolean getInline()

        Gets or sets a value that determines the disposition type.

        Value: true if content in the attachment is presented inline; otherwise, false.
        Returns:
        a boolean.
      • setInline

        public void setInline(boolean value)

        Gets or sets a value that determines the disposition type.

        Value: true if content in the attachment is presented inline; otherwise, false.
        Parameters:
        value - a boolean.
      • getReadDate

        public Date getReadDate()

        Gets or sets the read date.

        Value: A DateTime value that indicates the file read date; otherwise, MinValue if no date was specified.
        Returns:
        A DateTime value that indicates the file read date; otherwise, MinValue if no date was specified.
      • setReadDate

        public void setReadDate(Date value)

        Gets or sets the read date.

        Value: A DateTime value that indicates the file read date; otherwise, MinValue if no date was specified.
        Parameters:
        value - A DateTime value that indicates the file read date.
      • getSize

        public long getSize()

        Gets or sets the size of a file attachment.

        Value: A Int32 that specifies the number of bytes in the file attachment.
        Returns:
        a long.
      • setSize

        public void setSize(long value)

        Gets or sets the size of a file attachment.

        Value: A Int32 that specifies the number of bytes in the file attachment.
        Parameters:
        value - a long.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.
      • equals

        public boolean equals(Object rparam)

        Determines whether the specified System.Object is equal to this instance.

        Overrides:
        equals in class Object
        Parameters:
        rparam - The System.Object to compare with this instance.
        Returns:
        true if the specified System.Object is equal to this instance; otherwise, false.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.