|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.extrememessaging.ResponseMaster.CMessage
public class CMessage
Extreme Messaging's wrapper of a Java mail message Manages access to the message fields.
| Constructor Summary | |
|---|---|
CMessage(javax.mail.Message oMsg)
Create my message from a java mail message |
|
| Method Summary | |
|---|---|
void |
Delete()
Delete the message from the mailbox |
java.lang.String |
getField(int eMessageField)
Get the value of the field as a string |
java.lang.String |
getField(int eMessageField,
boolean convertToLowercase,
boolean stripWhitespace)
Get the value of the field as a string, optionally converting it to lowercase and/or stripping out the whitespace first. |
java.lang.String |
getField(java.lang.String FieldName)
Get the value of the field as a string |
java.util.Date |
getFieldAsDate(int eMessageField)
Get the value of the field as a date |
java.util.Date |
getFieldAsDate(java.lang.String FieldName)
Get the value of the field as a date |
java.lang.Object |
getFieldAsObject(int eMessageField)
Get the value of the field as an object (its native type) |
java.lang.Object |
getFieldAsObject(java.lang.String FieldName)
Get the value of the field as an object (its native type) |
java.lang.String |
getFieldNonNull(int eMessageField)
Gets the value of a field as a string. |
java.lang.String |
getFieldNonNull(java.lang.String FieldName)
Gets the value of a field as a string. |
java.lang.String |
getInfoForLogging()
Returns a string that you can use for logging so we know which message is causing a problem in the log. |
void |
SetField(java.lang.String FieldName,
java.lang.Object newValue)
Set the value of a field used by MessageField objects to set the value of another field. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CMessage(javax.mail.Message oMsg)
throws javax.mail.MessagingException
oMsg - The java message to create our message from
javax.mail.MessagingException| Method Detail |
|---|
public void SetField(java.lang.String FieldName,
java.lang.Object newValue)
FieldName - The name of the field to setnewValue - The new value to set it topublic java.lang.String getField(int eMessageField)
eMessageField - The integer identifier of the field
public java.lang.String getField(int eMessageField,
boolean convertToLowercase,
boolean stripWhitespace)
eMessageField - The integer identifier of the fieldconvertToLowercase - If true, the result is converted to lower casestripWhitespace - If true, the whitespace is removed from the resultpublic java.lang.String getFieldNonNull(int eMessageField)
eMessageField - The integer identifier of the fieldpublic java.lang.String getFieldNonNull(java.lang.String FieldName)
FieldName - The name of the fieldpublic java.lang.String getField(java.lang.String FieldName)
FieldName - The name of the fieldpublic java.util.Date getFieldAsDate(int eMessageField)
eMessageField - The integer identifier of the fieldpublic java.util.Date getFieldAsDate(java.lang.String FieldName)
FieldName - The name of the fieldpublic java.lang.Object getFieldAsObject(java.lang.String FieldName)
FieldName - The name of the fieldpublic java.lang.Object getFieldAsObject(int eMessageField)
eMessageField - The integer identifier of the fieldpublic void Delete()
public java.lang.String getInfoForLogging()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||