|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microdeveloper.util.net.mail.JMailContent
abstract class JMailContent
A simple container for JMail messages.
Field Summary | |
---|---|
static String |
CHARSET_DEFAULT
Default system character set for text encoding |
static String |
CHARSET_ISO88591
ISO 8859-1 character set text encoding |
static String |
CHARSET_USASCII
US ASCII character set text encoding |
static String |
DEFAULTHOST
Default mail host name |
static String |
HTML
HTML message type |
static String |
HTML_MIMETYPE
HTML mime type |
static String |
MULTIPART
Multipart message type |
static String |
PLAIN
PLAIN message type |
static String |
PLAIN_MIMETYPE
PLAIN mime type |
Constructor Summary | |
---|---|
protected |
JMailContent()
Constructor JMail |
protected |
JMailContent(String from,
Vector to,
Vector cc,
Vector bcc,
String subject,
String body)
Creates a new JMailContent object which is a simple container for an E-mail |
protected |
JMailContent(String from,
Vector to,
Vector cc,
Vector bcc,
String subject,
String plainBody,
String htmlBody)
Creates a new JMailContent object which is a simple container for an E-mail |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property listener adding property change support to the element |
Vector |
getAttachmentProperty()
Returns the attachment list or null if not set |
Vector |
getBccProperty()
Returns the BCC e-mail addresses or null if not set |
String |
getBodyProperty()
Returns the body property. |
Vector |
getCcProperty()
Returns the CC e-mail addresses or null if not set |
String |
getCharacterSetProperty()
Returns the character set property |
boolean |
getDebugProperty()
Returns the DEBUG property |
String |
getFromProperty()
Returns the FROM e-mail addresses or null if not set |
String |
getHostProperty()
Returns the SMTP host property |
String |
getHtmlBodyProperty()
Returns the HTML message body |
String |
getMimeTypeProperty()
Returns the MIMETYPE property |
String |
getPlainBodyProperty()
Returns the plain text message body |
String |
getSubjectProperty()
Returns the message subject property |
Vector |
getToProperty()
Returns the TO e-mail addresses or null if not set |
String |
getTypeProperty()
Returns the message type property |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property listener removing property change support from the element |
void |
setAttachmentProperty(Vector attachments)
Provides property change support for the attachments |
void |
setBccProperty(String bcc)
Provides property change support for the BCC e-mail addresses |
void |
setBccProperty(Vector bcc)
Provides property change support for the BCC e-mail addresses |
void |
setBodyProperty(String body)
Provides property change support for the message body property. |
void |
setCcProperty(String cc)
Provides property change support for the CC e-mail addresses |
void |
setCcProperty(Vector cc)
Provides property change support for the CC e-mail addresses |
void |
setCharacterSetProperty(String value)
Provides property change support for the character set |
void |
setDebugProperty(boolean debug)
Provides property change support for the debug property |
void |
setFromProperty(String from)
Provides property change support for the FROM e-mail addresses |
void |
setHostProperty(String host)
Provides property change support for the SMTP host property |
void |
setHtmlBodyProperty(String htmlBody)
Provides property change support for the HTML message body property |
void |
setMimeTypeProperty(String mimeType)
Provides property change support for the mime type property. |
void |
setPlainBodyProperty(String plainBody)
Provides property change support for the plain text message body property |
void |
setSubjectProperty(String subject)
Provides property change support for the Subject property |
void |
setToProperty(String to)
Provides property change support for the TO e-mail addresses |
void |
setToProperty(Vector to)
|
void |
setTypeProperty(String type)
Provides property change support for the message type property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PLAIN_MIMETYPE
public static final String HTML_MIMETYPE
public static final String PLAIN
public static final String HTML
public static final String MULTIPART
public static final String DEFAULTHOST
public static final String CHARSET_DEFAULT
public static final String CHARSET_USASCII
public static final String CHARSET_ISO88591
Constructor Detail |
---|
protected JMailContent()
protected JMailContent(String from, Vector to, Vector cc, Vector bcc, String subject, String plainBody, String htmlBody)
from
- from sender e-mail address(es)to
- to recipient e-mail address(es)cc
- cc recipient e-mail address(es)bcc
- bcc recipient e-mail address(es)subject
- subject of the messageplainBody
- content of the message in plain text format (message body)htmlBody
- content of the message in HTML format (message body)protected JMailContent(String from, Vector to, Vector cc, Vector bcc, String subject, String body)
from
- from sender e-mail address(es)to
- to recipient e-mail address(es)cc
- cc recipient e-mail address(es)bcc
- bcc recipient e-mail address(es)subject
- subject of the messagebody
- content of the message in plain text format (message body)Method Detail |
---|
public void setFromProperty(String from)
from
- the new FROM e-mail address propertypublic void setToProperty(String to)
to
- the new TO e-mail address propertypublic void setCcProperty(String cc)
cc
- the new CC e-mail address propertypublic void setBccProperty(String bcc)
bcc
- the new BCC e-mail address propertypublic void setToProperty(Vector to)
public void setCcProperty(Vector cc)
cc
- the new CC e-mail address propertypublic void setCharacterSetProperty(String value)
value
- the new character set propertypublic void setBccProperty(Vector bcc)
bcc
- the new BCC e-mail address propertypublic void setAttachmentProperty(Vector attachments)
attachments
- Vector list of attachmentspublic void setSubjectProperty(String subject)
subject
- the new Subject propertypublic void setPlainBodyProperty(String plainBody)
plainBody
- the new plain text message body propertypublic void setHtmlBodyProperty(String htmlBody)
htmlBody
- the new HTML message body propertypublic void setBodyProperty(String body)
body
- the new body propertypublic void setTypeProperty(String type)
type
- the new message type propertypublic void setMimeTypeProperty(String mimeType)
mimeType
- the new message type propertypublic void setHostProperty(String host)
host
- the new SMTP host IP address or namepublic void setDebugProperty(boolean debug)
debug
- true for debugging or false otherwisepublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to addpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the listener to removepublic String getCharacterSetProperty()
public String getTypeProperty()
public String getBodyProperty()
public String getHtmlBodyProperty()
public String getPlainBodyProperty()
public String getSubjectProperty()
public Vector getBccProperty()
public Vector getCcProperty()
public Vector getToProperty()
public String getFromProperty()
public Vector getAttachmentProperty()
public String getHostProperty()
public String getMimeTypeProperty()
public boolean getDebugProperty()
|
MDi JLib 1.7.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |