com.aspose.email
Class ContentDisposition

java.lang.Object
  extended by com.aspose.email.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)
           
 Date getCreationDate()
           
 String getDispositionType()
           Gets or sets the type of the disposition.
 String getFileName()
           Gets or sets the file name for an attachment.
 boolean getInline()
           Gets or sets a value that determines the disposition type.
 Date getModificationDate()
           
 HashMap<String,String> getParameters()
           Gets the parameters.
 Date getReadDate()
           
 long getSize()
           Gets or sets the size of a file attachment.
 int hashCode()
           
 void setCreationDate(Date value)
           
 void setDispositionType(String value)
           
 void setFileName(String value)
           
 void setInline(boolean value)
           
 void setModificationDate(Date value)
           
 void setReadDate(Date value)
           
 void setSize(long value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object rparam)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.