ResponseMessageBuilder

Inheritance: java.lang.Object

public abstract class ResponseMessageBuilder

Provides creation and formatting the forwarding and replying messages.

Constructors

Constructor Description
ResponseMessageBuilder()

Methods

Method Description
getAdditionMode() Gets or sets the format of response message.
setAdditionMode(int value) Gets or sets the format of response message.
getSender() Gets or sets the addres from which the response message will be sent.
setSender(MailAddress value) Gets or sets the addres from which the response message will be sent.
getResponseText() Gets or sets the body of response message.
setResponseText(String value) Gets or sets the body of response message.
buildResponse(MailMessage msg) Builds the forwarding and replying messages.
buildResponse(MapiMessage msg) Builds the forwarding and replying messages.

ResponseMessageBuilder()

public ResponseMessageBuilder()

getAdditionMode()

public final int getAdditionMode()

Gets or sets the format of response message.

Returns: int

setAdditionMode(int value)

public final void setAdditionMode(int value)

Gets or sets the format of response message.

Parameters:

Parameter Type Description
value int

getSender()

public final MailAddress getSender()

Gets or sets the addres from which the response message will be sent.

Returns: MailAddress

setSender(MailAddress value)

public final void setSender(MailAddress value)

Gets or sets the addres from which the response message will be sent.

Parameters:

Parameter Type Description
value MailAddress

getResponseText()

public final String getResponseText()

Gets or sets the body of response message.


Can contain html tags or rtf keywords if type of body of original message is HTML or RTF respectively.

Returns: java.lang.String

setResponseText(String value)

public final void setResponseText(String value)

Gets or sets the body of response message.


Can contain html tags or rtf keywords if type of body of original message is HTML or RTF respectively.

Parameters:

Parameter Type Description
value java.lang.String

buildResponse(MailMessage msg)

public abstract MailMessage buildResponse(MailMessage msg)

Builds the forwarding and replying messages.

Parameters:

Parameter Type Description
msg MailMessage Original message MailMessage.

Returns: MailMessage - Resultant message MailMessage.

buildResponse(MapiMessage msg)

public abstract MapiMessage buildResponse(MapiMessage msg)

Builds the forwarding and replying messages.

Parameters:

Parameter Type Description
msg MapiMessage Original message MapiMessage.

Returns: MapiMessage - Resultant message MapiMessage.