public class DefaultMailMessageParser extends AbstractRequestParser<javax.mail.Message> implements MailMessageParser
Constructor and Description |
---|
DefaultMailMessageParser()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected FileInfo |
getFileInfo(javax.mail.Message mailMessage)
Returns the file info from the provided mail object.
This function does not handle multiple file attachments. |
protected FileInfo |
getFileInfoFromInputDataImpl(javax.mail.Message inputData)
This function returns the file info from the request data.
|
protected String |
getSenderEmail(javax.mail.Message mailMessage)
Returns the sender email from the provided mail object.
|
protected String |
getTargetAddress(javax.mail.Message mailMessage)
Returns the target address from the provided mail object.
|
protected void |
initializeImpl(Map<String,String> configuration)
This function initializes the component.
|
protected void |
updateFaxJobFromInputDataImpl(javax.mail.Message inputData,
FaxJob faxJob)
This function update the fax job from the request data.
This fax job will not have any file data. |
getFileInfoFromInputData, initialize, updateFaxJobFromInputData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileInfoFromInputData, updateFaxJobFromInputData
initialize
public DefaultMailMessageParser()
protected void initializeImpl(Map<String,String> configuration)
initializeImpl
in class AbstractRequestParser<javax.mail.Message>
configuration
- The component configurationprotected FileInfo getFileInfoFromInputDataImpl(javax.mail.Message inputData)
getFileInfoFromInputDataImpl
in class AbstractRequestParser<javax.mail.Message>
inputData
- The input dataprotected void updateFaxJobFromInputDataImpl(javax.mail.Message inputData, FaxJob faxJob)
updateFaxJobFromInputDataImpl
in class AbstractRequestParser<javax.mail.Message>
inputData
- The input datafaxJob
- The fax job to updateprotected String getTargetAddress(javax.mail.Message mailMessage) throws javax.mail.MessagingException
mailMessage
- The mail message with the fax datajavax.mail.MessagingException
- Any exception while handling the mail messageprotected String getSenderEmail(javax.mail.Message mailMessage) throws javax.mail.MessagingException
mailMessage
- The mail message with the fax datajavax.mail.MessagingException
- Any exception while handling the mail messageprotected FileInfo getFileInfo(javax.mail.Message mailMessage) throws javax.mail.MessagingException, IOException
mailMessage
- The mail message with the fax datajavax.mail.MessagingException
- Any exception while handling the mail messageIOException
- Any IO exceptionCopyright © 2009–2020 fax4j. All rights reserved.