Package org.apache.ofbiz.service.mail
Class JavaMailContainer
java.lang.Object
org.apache.ofbiz.service.mail.JavaMailContainer
- All Implemented Interfaces:
Container
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Return the container name.protected javax.mail.Store
getStore
(javax.mail.Session session) Gets store.void
init
(List<StartupCommand> ofbizCommands, String name, String configFile) Initialize the container.protected javax.mail.Session
Make session session.boolean
start()
Start the container process.void
stop()
Stop the container process.protected javax.mail.URLName
updateUrlName
(javax.mail.URLName urlName, Properties props) Update url name url name.
-
Field Details
-
INBOX
- See Also:
-
-
Constructor Details
-
JavaMailContainer
public JavaMailContainer()
-
-
Method Details
-
init
Description copied from interface:Container
Initialize the container. This method must not block - implementations should initialize internal structures and then return. -
start
Description copied from interface:Container
Start the container process. This method must not block - implementations that require thread blocking must create a separate thread and then return.- Specified by:
start
in interfaceContainer
- Returns:
true
if the process started.- Throws:
ContainerException
- If an error was encountered.
-
stop
public void stop()Description copied from interface:Container
Stop the container process. This method must not block. -
getName
Description copied from interface:Container
Return the container name. -
makeSession
Make session session.- Parameters:
client
- the client- Returns:
- the session
-
getStore
Gets store.- Parameters:
session
- the session- Returns:
- the store
- Throws:
ContainerException
- the container exception
-
updateUrlName
Update url name url name.- Parameters:
urlName
- the url nameprops
- the props- Returns:
- the url name
-