public class ContentDisposition extends Object
Represents a Content-Disposition header.
Constructor and Description |
---|
ContentDisposition()
Initializes a new instance of the
ContentDisposition class. |
ContentDisposition(String disposition)
Initializes a new instance of the
ContentDisposition class. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines whether the specified
Object is equal to this instance. |
Date |
getCreationDate()
Gets or sets the creation date.
|
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()
Gets or sets the modification date.
|
TrackingStringDictionary |
getParameters()
Gets the parameters.
|
Date |
getReadDate()
Gets or sets the read date.
|
long |
getSize()
Gets or sets the size of a file attachment.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
setCreationDate(Date value)
Gets or sets the creation date.
|
void |
setDispositionType(String value)
Gets or sets the type of the disposition.
|
void |
setFileName(String value)
Gets or sets the file name for an attachment.
|
void |
setInline(boolean value)
Gets or sets a value that determines the disposition type.
|
void |
setModificationDate(Date value)
Gets or sets the modification date.
|
void |
setReadDate(Date value)
Gets or sets the read date.
|
void |
setSize(long value)
Gets or sets the size of a file attachment.
|
String |
toString()
Returns a
String that represents this instance. |
public ContentDisposition()
Initializes a new instance of the ContentDisposition
class.
public ContentDisposition(String disposition)
Initializes a new instance of the ContentDisposition
class.
disposition
- A value that contains the disposition.public final String getDispositionType()
Gets or sets the type of the disposition.
Value: The String that contains the disposition type.public final void setDispositionType(String value)
Gets or sets the type of the disposition.
Value: The String that contains the disposition type.public final TrackingStringDictionary getParameters()
Gets the parameters.
Value: A StringDictionary that contains parameter name/value pairs.public final String getFileName()
Gets or sets the file name for an attachment.
Value: The name of the file.public final void setFileName(String value)
Gets or sets the file name for an attachment.
Value: The name of the file.public final 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.public final 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.public final 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.public final 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.public final boolean getInline()
Gets or sets a value that determines the disposition type.
Value: true if content in the attachment is presented inline; otherwise, false.public final 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.public final 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.public final 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.public final long getSize()
Gets or sets the size of a file attachment.
Value: A Int32 that specifies the number of bytes in the file attachment.public final 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.public boolean equals(Object obj)
Determines whether the specified Object
is equal to this instance.