|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.config.mailtransporttest.SendmailMessage
public class SendmailMessage
Define the to, from, subject, and body of a message. If not defined, one will be defined for your benefit (or confusion ;-)
| Constructor Summary | |
|---|---|
SendmailMessage()
|
|
| Method Summary | |
|---|---|
String |
getBody()
Returns the value of field 'body'. |
String |
getFrom()
Returns the value of field 'from'. |
String |
getSubject()
Returns the value of field 'subject'. |
String |
getTo()
Returns the value of field 'to'. |
boolean |
isValid()
Method isValid. |
void |
marshal(ContentHandler handler)
|
void |
marshal(Writer out)
|
void |
setBody(String body)
Sets the value of field 'body'. |
void |
setFrom(String from)
Sets the value of field 'from'. |
void |
setSubject(String subject)
Sets the value of field 'subject'. |
void |
setTo(String to)
Sets the value of field 'to'. |
static SendmailMessage |
unmarshal(Reader reader)
Method unmarshal. |
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SendmailMessage()
| Method Detail |
|---|
public String getBody()
public String getFrom()
public String getSubject()
public String getTo()
public boolean isValid()
public void marshal(Writer out)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
out -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void marshal(ContentHandler handler)
throws IOException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
handler -
IOException - if an IOException occurs during
marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshalingpublic void setBody(String body)
body - the value of field 'body'.public void setFrom(String from)
from - the value of field 'from'.public void setSubject(String subject)
subject - the value of field 'subject'.public void setTo(String to)
to - the value of field 'to'.
public static SendmailMessage unmarshal(Reader reader)
throws org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
reader -
org.exolab.castor.xml.MarshalException - if object is
null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
public void validate()
throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException - if this
object is an invalid instance according to the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||