com.aspose.email

com.aspose.email

Class ContentDisposition

public class ContentDisposition
extends Object

Represents a Content-Disposition header.

Constructor Summary
ContentDisposition()
Initializes a new instance of the ContentDisposition class.
ContentDisposition(String disposition)
Initializes a new instance of the ContentDisposition class.
 
Method Summary
boolean
equals(Object rparam)
getDispositionType()
Gets or sets the type of the disposition.
getFileName()
Gets or sets the file name for an attachment.
boolean
getInline()
Gets or sets a value that determines the disposition type.
getParameters()
Gets the parameters.
long
getSize()
Gets or sets the size of a file attachment.
int
void
void
void
void
setInline(booleanvalue)
void
void
setReadDate(Date value)
void
setSize(longvalue)
 
Methods inherited from class java.lang.Object
 

    • 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.

      • setDispositionType

        public void setDispositionType(String value)
      • getParameters

        public HashMap<String,String> getParameters()

        Gets the parameters.

        Value: A StringDictionary that contains parameter name/value pairs.

      • getFileName

        public String getFileName()

        Gets or sets the file name for an attachment.

        Value: The name of the file.

      • setFileName

        public void setFileName(String value)
      • getCreationDate

        public Date getCreationDate()
      • setCreationDate

        public void setCreationDate(Date value)
      • getModificationDate

        public Date getModificationDate()
      • setModificationDate

        public void setModificationDate(Date value)
      • 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.

      • setInline

        public void setInline(boolean value)
      • getReadDate

        public Date getReadDate()
      • setReadDate

        public void setReadDate(Date value)
      • 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.

      • setSize

        public void setSize(long value)