|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ComplexProperty
microsoft.exchange.webservices.data.MessageBody
public final class MessageBody
Represents the body of a message.
| Constructor Summary | |
|---|---|
MessageBody()
* Initializes a new instance. |
|
MessageBody(BodyType bodyType,
String text)
* Initializes a new instance. |
|
MessageBody(String text)
* Initializes a new instance. |
|
| Method Summary | |
|---|---|
BodyType |
getBodyType()
Gets the type of the message body's text. |
static MessageBody |
getMessageBodyFromText(String textBody)
Defines an implicit conversation between a string and MessageBody. |
static String |
getStringFromMessageBody(MessageBody messageBody)
* Defines an implicit conversion of MessageBody into a string. |
protected void |
readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Reads attributes from XML. |
protected void |
readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
* Reads text value from XML. |
void |
setBodyType(BodyType bodyType)
Sets the type of the message body's text. |
void |
setText(String text)
Sets the text of the message body. |
String |
toString()
Returns a String that represents the current Object. |
protected void |
writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes attributes to XML. |
protected void |
writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
* Writes elements to XML. |
| Methods inherited from class microsoft.exchange.webservices.data.ComplexProperty |
|---|
addOnChangeEvent, canSetFieldValue, changed, clearChangeEvents, clearChangeLog, getNamespace, internalValidate, loadFromXml, loadFromXml, removeChangeEvent, setNamespace, tryReadElementFromXml, validate, writeToXml, writeToXml |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MessageBody()
public MessageBody(BodyType bodyType,
String text)
bodyType - The type of the message body's text.text - The text of the message body.public MessageBody(String text)
text - The text of the message body, assumed to be HTML.| Method Detail |
|---|
public static MessageBody getMessageBodyFromText(String textBody)
textBody - The string to convert to MessageBody, assumed to be HTML.
public static String getStringFromMessageBody(MessageBody messageBody)
throws Exception
messageBody - The MessageBody to convert to a string.
Exception - the exception
protected void readAttributesFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws Exception
readAttributesFromXml in class ComplexPropertyreader - The reader.
Exception - the exception
protected void readTextValueFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
throws XMLStreamException,
ServiceXmlDeserializationException
readTextValueFromXml in class ComplexPropertyreader - The reader.
XMLStreamException - the xML stream exception
ServiceXmlDeserializationException - the service xml deserialization exception
protected void writeAttributesToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException
writeAttributesToXml in class ComplexPropertywriter - The writer.
ServiceXmlSerializationException - the service xml serialization exception
protected void writeElementsToXml(microsoft.exchange.webservices.data.EwsServiceXmlWriter writer)
throws ServiceXmlSerializationException
writeElementsToXml in class ComplexPropertywriter - The writer.
ServiceXmlSerializationException - the service xml serialization exceptionpublic BodyType getBodyType()
public void setBodyType(BodyType bodyType)
bodyType - BodyType enumpublic void setText(String text)
text - message body textpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||