org.ofbiz.service.mail
Class JavaMailContainer
java.lang.Object
org.ofbiz.service.mail.JavaMailContainer
- All Implemented Interfaces:
- Container
public class JavaMailContainer
- extends java.lang.Object
- implements Container
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
module
public static final java.lang.String module
INBOX
public static final java.lang.String INBOX
- See Also:
- Constant Field Values
delegator
protected GenericDelegator delegator
dispatcher
protected LocalDispatcher dispatcher
userLogin
protected GenericValue userLogin
timerDelay
protected long timerDelay
maxSize
protected long maxSize
pollTimer
protected java.util.Timer pollTimer
deleteMail
protected boolean deleteMail
configFile
protected java.lang.String configFile
stores
protected java.util.Map<Store,Session> stores
JavaMailContainer
public JavaMailContainer()
init
public void init(java.lang.String[] args,
java.lang.String configFile)
throws ContainerException
- Initialize the container
- Specified by:
init
in interface Container
- Parameters:
args
- args from calling classconfigFile
- Location of master OFBiz configuration file
- Throws:
ContainerException
start
public boolean start()
throws ContainerException
- Start the container
- Specified by:
start
in interface Container
- Returns:
- true if server started
- Throws:
ContainerException
stop
public void stop()
throws ContainerException
- Stop the container
- Specified by:
stop
in interface Container
- Throws:
ContainerException
makeSession
protected Session makeSession(ContainerConfig.Container.Property client)
getStore
protected Store getStore(Session session)
throws ContainerException
- Throws:
ContainerException
updateUrlName
protected URLName updateUrlName(URLName urlName,
java.util.Properties props)