com.upokecenter.mail.DispositionBuilder

com.upokecenter.mail.DispositionBuilder

@Deprecated public class DispositionBuilder extends Object

A mutable data type that allows a content disposition to be built.

Constructors

Methods

Method Details

getDispositionType

public final String getDispositionType()

Gets this value's disposition type, such as "inline" or "attachment".

Returns:

Throws:

setDispositionType

public final void setDispositionType(String value)

isText

@Deprecated public final boolean isText()

Gets a value indicating whether this is a text media type.

Returns:

isMultipart

@Deprecated public final boolean isMultipart()

Gets a value indicating whether this is a multipart media type.

Returns:

ToDisposition

public ContentDisposition ToDisposition()

Converts this object to an immutable ContentDisposition object.

Returns:

SetDispositionType

public DispositionBuilder SetDispositionType(String str)

Sets the disposition type, such as "inline". This method enables the pattern of method chaining (e.g., new ...().getSet()...().getSet()...()) unlike with the DispositionType property in .NET or the setDispositionType method (with small s) in Java.

Parameters:

Returns:

Throws:

RemoveParameter

public DispositionBuilder RemoveParameter(String name)

Removes a parameter from this content disposition. Does nothing if the parameter's name doesn't exist.

Parameters:

Returns:

Throws:

SetParameter

public DispositionBuilder SetParameter(String name, String value)

Sets a parameter of this content disposition.

Parameters:

Returns:

Throws:

toString

public String toString()

Converts this object to a text string.

Overrides:

Returns:

Back to MailLib start page.