org.ofbiz.service.mail
Class JavaMailContainer

java.lang.Object
  extended by org.ofbiz.service.mail.JavaMailContainer
All Implemented Interfaces:
Container

public class JavaMailContainer
extends java.lang.Object
implements Container


Field Summary
protected  java.lang.String configFile
           
protected  GenericDelegator delegator
           
protected  boolean deleteMail
           
protected  LocalDispatcher dispatcher
           
static java.lang.String INBOX
           
protected  long maxSize
           
static java.lang.String module
           
protected  java.util.Timer pollTimer
           
protected  java.util.Map<Store,Session> stores
           
protected  long timerDelay
           
protected  GenericValue userLogin
           
 
Constructor Summary
JavaMailContainer()
           
 
Method Summary
protected  Store getStore(Session session)
           
 void init(java.lang.String[] args, java.lang.String configFile)
          Initialize the container
protected  Session makeSession(ContainerConfig.Container.Property client)
           
 boolean start()
          Start the container
 void stop()
          Stop the container
protected  URLName updateUrlName(URLName urlName, java.util.Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

JavaMailContainer

public JavaMailContainer()
Method Detail

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 class
configFile - 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)