| org.apache.synapse.transport.base.AbstractPollingTransportListener org.apache.synapse.transport.mail.MailTransportListener
MailTransportListener | public class MailTransportListener extends AbstractPollingTransportListener (Code) | | This mail transport lister implementation uses the base transport framework and is a polling
transport. i.e. a service can register itself with custom a custom mail configuration (i.e.
pop3 or imap) and specify its polling duration, and what action to be taken after processing
messages. The transport always deletes processed mails from the folder they were fetched from
and can be configured to be optionally moved to a different folder, if the server supports it
(e.g. with imap). When checking for new mail, the transport ignores messages already flaged as
SEEN and DELETED
|
getEPRsForService | public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault(Code) | | Get the EPR for the given service over the Mail transport
Parameters: serviceName - service name Parameters: ip - ignored the EPR for the service throws: AxisFault - not used |
init | public void init(ConfigurationContext cfgCtx, TransportInDescription trpInDesc) throws AxisFault(Code) | | Initializes the Mail transport
Parameters: cfgCtx - the Axsi2 configuration context Parameters: trpInDesc - the POP3 transport in description from the axis2.xml throws: AxisFault - on error |
onPoll | public void onPoll()(Code) | | On a poller tick, iterate over the list of mail accounts and check if
it is time to scan the contents for new files
|
startListeningForService | protected void startListeningForService(AxisService service)(Code) | | |
stopListeningForService | protected void stopListeningForService(AxisService service)(Code) | | |
|
|