public class MailComponent
extends org.ow2.petals.component.framework.bc.AbstractBindingComponent
It creates some sub components like :
the MailSessionManager
used to manage session with mail servers : create and open sessions, send and
receive mails,
the MimeMessageManager
used to process (reading or creating) mail messages,
the SessionDescriptorBuilder
used to extract information from a Mail URI String,
the ExternalListener
used to manage listeners for external mail addresses registered during SU
deployment,
the JBIListener
used to process incoming JBI messages
This class defines some Default Value for mail features like :
SMTP (25), IMAP (143) and POP3 (110) default ports,
default mail folder (INBOX),
default mail checking period (60 seconds).
Modifier and Type | Field and Description |
---|---|
protected MailSessionManager |
mailSessionManager |
protected MimeMessageManager |
mimeMessageManager |
Constructor and Description |
---|
MailComponent() |
Modifier and Type | Method and Description |
---|---|
protected org.ow2.petals.component.framework.su.AbstractServiceUnitManager |
createServiceUnitManager() |
protected void |
doInit() |
AbstractSendService |
getMailOperation(org.ow2.petals.component.framework.util.ServiceEndpointOperationKey eptAndOperation) |
MailSessionManager |
getMailSessionManager() |
MimeMessageManager |
getMimeMessageManager() |
void |
logEptOperationToMailOperation(Logger logger,
Level logLevel) |
void |
registerMailOperation(org.ow2.petals.component.framework.util.ServiceEndpointOperationKey eptAndOperation,
AbstractSendService mailOperation) |
void |
removeMailOperations(String eptName) |
createMonitoringMBean, doShutdown, doStart, doStop, getAsyncManager, getChannel, getComponentExtensions, getContext, getExtensionMBeanName, getInterceptor, getInterceptors, getJbiComponentDescriptor, getLifeCycle, getLogger, getMBeanAttributesNames, getMBeanOperationsNames, getMonitoringBean, getNativeWsdl, getParameterAsBoolean, getParameterAsInteger, getParameterAsLong, getParameterAsNotEmptyTrimmedString, getParameterAsPositiveInteger, getParameterAsPositiveLong, getParameterAsStricPositiveInteger, getParameterAsStricPositiveLong, getParameterAsTrimmedString, getPlaceHolders, getProbesTimer, getProcessorManager, getResourceBundleName, getResponseTimeProbeSamplePeriod, getServiceDescription, getServiceUnitManager, init, isExchangeWithConsumerOkay, isExchangeWithProviderOkay, reloadPlaceHolders, resolveEndpointReference, shutDown, start, stop
protected MailSessionManager mailSessionManager
protected MimeMessageManager mimeMessageManager
protected void doInit() throws javax.jbi.JBIException
doInit
in class org.ow2.petals.component.framework.AbstractComponent
javax.jbi.JBIException
public MailSessionManager getMailSessionManager()
public MimeMessageManager getMimeMessageManager()
protected org.ow2.petals.component.framework.su.AbstractServiceUnitManager createServiceUnitManager()
createServiceUnitManager
in class org.ow2.petals.component.framework.bc.AbstractBindingComponent
public void registerMailOperation(org.ow2.petals.component.framework.util.ServiceEndpointOperationKey eptAndOperation, AbstractSendService mailOperation)
eptAndOperation
- the end-point Name and operation NamemailOperation
- a mail operationpublic void removeMailOperations(String eptName)
eptName
- the end-point namepublic AbstractSendService getMailOperation(org.ow2.petals.component.framework.util.ServiceEndpointOperationKey eptAndOperation)
eptAndOperation
- the end-point name and operation nameCopyright © 2005-2018 Linagora. All Rights Reserved.