|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.umber.core.email.MimeManager
MIME content converter. Prepares Java objects for outgoing and incoming email.
Constructor Summary | |
MimeManager()
Creates a new instance of MimeManager. |
Method Summary | |
void |
addCustomConverter(IMimeConverter converter)
Adds a custom MIME type converter. |
java.lang.Object |
convertIncoming(java.lang.String mimeType,
java.lang.Object mimeObject)
Convert an incoming email object into a more usable object for UmberEmail.getContents(). |
java.lang.String |
convertOutgoing(java.lang.Object appObject)
Converts an outgoing email object into a suitable outgoing format. |
IMimeConverter[] |
getCustomConverters()
Retrieves an array of all custom converters. |
java.lang.String |
getMimeType(java.lang.Object content)
Looks up the MIME type that corresponds to the content object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MimeManager()
Method Detail |
public void addCustomConverter(IMimeConverter converter)
If a converter does not find a MIME type for the content object, it should return null so the other converters get a chance at the object.
converter
- custom MIME type converterpublic IMimeConverter[] getCustomConverters()
public java.lang.String getMimeType(java.lang.Object content)
content
- content object to find MIME type for
public java.lang.String convertOutgoing(java.lang.Object appObject) throws UmberEmailException
appObject
- Java object from UmberEmail.getContents()
UmberEmailException
- if a fatal error occurs in the converterpublic java.lang.Object convertIncoming(java.lang.String mimeType, java.lang.Object mimeObject) throws UmberEmailException
mimeType
- MIME content typemimeObject
- Java object for UmberEmail.getContents()
UmberEmailException
- if a fatal error occurs in the converter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |