public final class MIMEStructure2ComposedMailParser
extends java.lang.Object
| Constructor and Description |
|---|
MIMEStructure2ComposedMailParser(int accountId,
com.openexchange.tools.session.ServerSession session,
java.lang.String protocol,
java.lang.String hostName)
Initializes a new
MIMEStructure2ComposedMailParser. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.openexchange.filemanagement.ManagedFile> |
getManagedFiles()
Gets the managed files created during parsing process.
|
ComposedMailMessage[] |
parseMessage(org.json.JSONObject jsonMessage,
java.util.List<com.openexchange.exception.OXException> warnings)
Parses specified JSON message structure & returns the resulting
ComposedMailMessage instances. |
public MIMEStructure2ComposedMailParser(int accountId,
com.openexchange.tools.session.ServerSession session,
java.lang.String protocol,
java.lang.String hostName)
throws com.openexchange.exception.OXException
MIMEStructure2ComposedMailParser.accountId - The account IDsession - The sessionprotocol - The server's protocolhostName - Thje server's host namecom.openexchange.exception.OXException - If initialization failspublic java.util.List<com.openexchange.filemanagement.ManagedFile> getManagedFiles()
public ComposedMailMessage[] parseMessage(org.json.JSONObject jsonMessage, java.util.List<com.openexchange.exception.OXException> warnings) throws com.openexchange.exception.OXException
ComposedMailMessage instances.jsonMessage - The JSON message structurewarnings - ComposedMailMessage instances.com.openexchange.exception.OXException - If parsing fails