|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.net.message.MIMECompliantMessage
This class encapsulates MIME compliant message to send using SMTPClient.
| Constructor Summary | |
MIMECompliantMessage()
The constructor for the default message |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
|
java.lang.String |
getAttachments()
Method to get the attachment list of this message |
java.lang.String |
getBcc()
Method to get the BCC address from the message header of this message |
java.lang.String[] |
getBccArray()
Method to get the array of BCC addresses from the message header of this message |
java.lang.String |
getBody()
Method to get the body of this message |
java.lang.String |
getCc()
Method to get the CC address from the message header of this message |
java.lang.String[] |
getCcArray()
Method to get the array of CC addresses from the message header of this message |
java.lang.String |
getContentLength()
Method to get the Content-Length from the message header of this message |
java.lang.String |
getContentType()
Method to get the Content-Type from the message header of this message |
java.lang.String |
getDate()
Method to get the date from the message header of this message |
java.lang.String |
getEncoding()
Method to get the Content-Transfer-Encoding scheme from the message header of this message |
java.lang.String |
getFrom()
Method to get the FROM address from the message header of this message |
java.lang.String |
getHeaderFromFile(java.io.File file)
Method which returns the message header of the message in the specified file |
java.lang.String |
getMessageHeader()
Method which returns the message header of this message |
java.lang.String |
getMessageID()
Method to get the Message-ID from the message header of this message |
java.lang.String |
getMIMEVersion()
Method to get the MIME Version from the message header of this message |
java.lang.String |
getOrganization()
Method to get the name of the Organization from the message header of this message |
java.lang.String |
getSendFile()
Method to get the name of message file to be sent |
java.lang.String |
getSubject()
Method to get the Subject of message from the message header of this message |
java.lang.String |
getTo()
Method to get the TO address from the message header of this message |
java.lang.String[] |
getToArray()
Method to get the array of TO addresses from the message header of this message |
java.lang.String |
getXMailer()
Method to get the name of X-Mailer from the message header of this message |
void |
readExternal(java.io.ObjectInput ois)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
|
void |
saveMessageToFile(java.lang.String filePath)
Method which saves the message to the specified file |
void |
saveMessageToSendFile()
Method which saves the message to the send file This message will be saved to the send file, The file which have been specified by the |
void |
setAttachments(java.lang.String att)
Method to set the attachment list of this message |
void |
setBcc(java.lang.String bcc)
Method to set the BCC address in the message header of this message |
void |
setBody(java.lang.String b)
Method to set the body of this message |
void |
setCc(java.lang.String cc)
Method to set the CC address in the message header of this message |
void |
setContentLength(java.lang.String len)
Method to set the Content-Length in the message header of this message |
void |
setContentType(java.lang.String ctype)
Method to set the Content-Type in the message header of this message |
void |
setDate(java.lang.String date)
Method to set the Date in the message header of this message |
void |
setEncoding(java.lang.String enc)
Method to set the Content-Transfer-Encoding scheme in the message header of this message |
void |
setFrom(java.lang.String from)
Method to set the FROM address in the message header of this message |
void |
setMessageID(java.lang.String id)
Method to set the Message-ID in the message header of this message |
void |
setMIMEVersion(java.lang.String ver)
Method to set the MIME Version in the message header of this message |
void |
setOrganization(java.lang.String org)
Method to set the name of the Organization in the message header of this message |
void |
setSendFile(java.lang.String name)
Method to set the name of message file to be sent |
void |
setSubject(java.lang.String sub)
Method to set the Subject of message in the message header of this message |
void |
setTo(java.lang.String to)
Method to set the TO address in the message header of this message |
void |
setXMailer(java.lang.String x)
Method to set the name of X-Mailer in the message header of this message |
void |
writeExternal(java.io.ObjectOutput oos)
|
void |
writeMessage(java.io.OutputStream outputStream)
|
void |
writeMessage(java.io.PrintWriter writer)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MIMECompliantMessage()
| Method Detail |
public void saveMessageToSendFile()
throws java.lang.Exception
java.lang.Exception
public void saveMessageToFile(java.lang.String filePath)
throws java.lang.Exception
filePath - The specified filePath
java.lang.Exception
public void writeMessage(java.io.OutputStream outputStream)
throws java.lang.Exception
java.lang.Exception
public void writeMessage(java.io.PrintWriter writer)
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getMessageHeader()
public java.lang.String getHeaderFromFile(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic void setAttachments(java.lang.String att)
att - The attachment listpublic java.lang.String getAttachments()
public void setBody(java.lang.String b)
b - The body of this messagepublic java.lang.String getBody()
public void setSendFile(java.lang.String name)
name - The name of message file to be sentpublic java.lang.String getSendFile()
public void setOrganization(java.lang.String org)
org - The name of the organizationpublic java.lang.String getOrganization()
public void setMIMEVersion(java.lang.String ver)
ver - The MIME Versionpublic java.lang.String getMIMEVersion()
public void setContentLength(java.lang.String len)
len - The Content-Lengthpublic java.lang.String getContentLength()
public void setDate(java.lang.String date)
public java.lang.String getDate()
public void setXMailer(java.lang.String x)
x - The name of the X-Mailerpublic java.lang.String getXMailer()
public void setEncoding(java.lang.String enc)
enc - The Content-Transfer-Encoding schemepublic java.lang.String getEncoding()
public void setContentType(java.lang.String ctype)
ctype - The Content-Typepublic java.lang.String getContentType()
public void setMessageID(java.lang.String id)
id - The message-idpublic java.lang.String getMessageID()
public void setSubject(java.lang.String sub)
sub - The subjectpublic java.lang.String getSubject()
public void setCc(java.lang.String cc)
cc - The CC addresspublic java.lang.String getCc()
public java.lang.String[] getCcArray()
public void setBcc(java.lang.String bcc)
bcc - The BCC addresspublic java.lang.String getBcc()
public java.lang.String[] getBccArray()
public void setTo(java.lang.String to)
to - The TO addresspublic java.lang.String getTo()
public java.lang.String[] getToArray()
public void setFrom(java.lang.String from)
from - The FROM addresspublic java.lang.String getFrom()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void writeExternal(java.io.ObjectOutput oos)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput ois)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||