net.sf.jcopist.transport
Class EmailAsAttachementTransport

java.lang.Object
  extended by net.sf.jcopist.transport.EmailAsAttachementTransport
All Implemented Interfaces:
java.io.Serializable, ITransport

public final class EmailAsAttachementTransport
extends java.lang.Object
implements ITransport

ITransport implementation to send a document as an email attachement.

See Also:
Serialized Form

Constructor Summary
EmailAsAttachementTransport()
           
 
Method Summary
 java.lang.String getFromAddress()
          Returns the address of the sender.
 java.lang.String getMessageBody()
          Returns the body of the message.
 java.lang.String getRecipients()
          Returns the list of recipients.
 java.lang.String getSubject()
          Returns the message subject.
 void setFromAddress(java.lang.String _fromAddress)
          Sets the address of the sender.
 void setMessageBody(java.lang.String _messageBody)
          Sets the body of the message.
 void setRecipients(java.lang.String _recipients)
          Sets the list of recipients.
 void setSubject(java.lang.String _subject)
          Sets the message subject.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmailAsAttachementTransport

public EmailAsAttachementTransport()
Method Detail

getFromAddress

public java.lang.String getFromAddress()
Returns the address of the sender.

Returns:
the address of the sender.

setFromAddress

public void setFromAddress(java.lang.String _fromAddress)
Sets the address of the sender.

Parameters:
_fromAddress - the new address.

getRecipients

public java.lang.String getRecipients()
Returns the list of recipients.

Returns:
the list of recipients.

setRecipients

public void setRecipients(java.lang.String _recipients)
Sets the list of recipients.

Parameters:
_recipients - a list of comma-separated addresses, that must conform to RFC822 syntax.

getSubject

public java.lang.String getSubject()
Returns the message subject.

Returns:
the message subject.

setSubject

public void setSubject(java.lang.String _subject)
Sets the message subject.

Parameters:
_subject - the new subject.

getMessageBody

public java.lang.String getMessageBody()
Returns the body of the message.

Returns:
the body of the message.

setMessageBody

public void setMessageBody(java.lang.String _messageBody)
Sets the body of the message.

Parameters:
_messageBody - the new body (plain text or HTML).

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.