net.israfil.service.mail.api.smtp
Class PlaintextMessageBody
java.lang.Object
net.israfil.service.mail.api.smtp.PlaintextMessageBody
- All Implemented Interfaces:
- MailMessageBody
public class PlaintextMessageBody
- extends java.lang.Object
- implements MailMessageBody
An ASCII plaintext message body.
- Author:
- cgruber
|
Method Summary |
byte[] |
getBytes(java.lang.String charset)
|
java.lang.String |
getContentType()
|
java.lang.String |
getType()
|
void |
setContent(java.lang.String newContent)
Sets the context of this message body, returning itself to
the caller so it can be |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlaintextMessageBody
public PlaintextMessageBody()
PlaintextMessageBody
public PlaintextMessageBody(java.lang.String content)
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType in interface MailMessageBody
getBytes
public byte[] getBytes(java.lang.String charset)
- Specified by:
getBytes in interface MailMessageBody
setContent
public void setContent(java.lang.String newContent)
- Sets the context of this message body, returning itself to
the caller so it can be
- Parameters:
newContent -
getType
public java.lang.String getType()
- Specified by:
getType in interface MailMessageBody
Copyright © 2009. All Rights Reserved.