com.hs.mail.smtp.message
Class SmtpMessage
java.lang.Object
com.hs.mail.smtp.message.SmtpMessage
- All Implemented Interfaces:
- Serializable
public class SmtpMessage
- extends Object
- implements Serializable
- Since:
- May 31, 2010
- Author:
- Won Chul Doh
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOCAL
public static final int LOCAL
- See Also:
- Constant Field Values
REMOTE
public static final int REMOTE
- See Also:
- Constant Field Values
ALL
public static final int ALL
- See Also:
- Constant Field Values
SmtpMessage
public SmtpMessage(MailAddress from,
int node)
SmtpMessage
public SmtpMessage(MailAddress from)
getName
public String getName()
getNode
public int getNode()
setNode
public void setNode(int node)
getFrom
public MailAddress getFrom()
getRecipients
public Set<Recipient> getRecipients()
addRecipient
public void addRecipient(Recipient recipient)
getRecipientsSize
public int getRecipientsSize()
getTime
public long getTime()
getRetryCount
public int getRetryCount()
setRetryCount
public void setRetryCount(int retryCount)
getDate
public String getDate()
getLastUpdate
public Date getLastUpdate()
setLastUpdate
public void setLastUpdate(Date lastUpdate)
getErrorMessage
public String getErrorMessage()
isNotificationMessage
public boolean isNotificationMessage()
appendErrorMessage
public void appendErrorMessage(String errorMessage)
getDataFile
public File getDataFile()
setContent
public void setContent(InputStream is)
throws IOException
- Throws:
IOException
setContent
public void setContent(javax.mail.internet.MimeMessage msg)
throws IOException,
javax.mail.MessagingException
- Throws:
IOException
javax.mail.MessagingException
store
public void store()
throws IOException
- Throws:
IOException
createTrigger
public void createTrigger()
throws IOException
- Throws:
IOException
getMailMessage
public MailMessage getMailMessage()
throws IOException
- Throws:
IOException
getMimeMessage
public javax.mail.internet.MimeMessage getMimeMessage()
throws javax.mail.MessagingException
- Throws:
javax.mail.MessagingException
dispose
public void dispose()
readMessage
public static SmtpMessage readMessage(String name)
throws SmtpException
- Throws:
SmtpException
Copyright © 2011. All Rights Reserved.