|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.providers.email.AbstractMailConnector
Abstract superclass for mail connectors. Provides Mule with an Authenticator object and other shared functionality like e.g. Session creation.
Field Summary | |
static String |
MAILBOX
|
Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
Constructor Summary | |
AbstractMailConnector(int defaultPort,
String mailboxFolder)
|
Method Summary | |
protected void |
doConnect()
Template method where any connections should be made for the connector |
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected void |
doInitialise()
|
protected void |
doStart()
Template method to perform any work when starting the connectoe |
protected void |
doStop()
Template method to perform any work when stopping the connectoe |
protected void |
dumpProperties(String title,
Properties properties,
boolean filter)
|
protected void |
extendPropertiesForSession(Properties global,
Properties local,
URLName url)
Subclasses should extend this to add further properties. |
Authenticator |
getAuthenticator()
|
protected String |
getBaseProtocol()
Some protocols (eg secure extensions) extend a "base" protocol. |
int |
getDefaultPort()
|
String |
getMailboxFolder()
|
SessionDetails |
getSessionDetails(UMOImmutableEndpoint endpoint)
|
protected SessionDetails |
newSession(UMOImmutableEndpoint endpoint)
|
void |
setAuthenticator(Authenticator authenticator)
|
void |
setMailboxFolder(String mailboxFolder)
|
URLName |
urlFromEndpoint(UMOImmutableEndpoint endpoint)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mule.umo.provider.UMOConnector |
getProtocol |
Field Detail |
public static final String MAILBOX
Constructor Detail |
public AbstractMailConnector(int defaultPort, String mailboxFolder)
Method Detail |
public int getDefaultPort()
public Authenticator getAuthenticator()
public void setAuthenticator(Authenticator authenticator)
public String getMailboxFolder()
public void setMailboxFolder(String mailboxFolder)
public SessionDetails getSessionDetails(UMOImmutableEndpoint endpoint)
public URLName urlFromEndpoint(UMOImmutableEndpoint endpoint)
protected String getBaseProtocol()
protected void extendPropertiesForSession(Properties global, Properties local, URLName url)
global
- system propertieslocal
- local properties (specific to one session)url
- the endpoint urlprotected SessionDetails newSession(UMOImmutableEndpoint endpoint)
protected void dumpProperties(String title, Properties properties, boolean filter)
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class AbstractConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
protected void doStart() throws UMOException
AbstractConnector
doStart
in class AbstractConnector
UMOException
- if the method failsprotected void doStop() throws UMOException
AbstractConnector
doStop
in class AbstractConnector
UMOException
- if the method fails
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |