| org.apache.cocoon.acting.ServiceableAction org.apache.cocoon.mail.MailAction
MailAction | public class MailAction extends ServiceableAction implements ThreadSafe(Code) | | This action creates javamail objects, and puts XMLizable object wrappers
of these objects into the request attribute map.
This action enables javamail access as action. It creates an http sesion,
and puts the MailContext object into the session attributes.
See Also: MailContext author: Bernhard Huber version: $Id: MailAction.java 468424 2006-10-27 15:44:53Z vgritsenko $ since: Cocoon 2.1, 16 December 2002 |
Method Summary | |
public Map | act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par) Execute mail commands. | protected void | checkProviders(javax.mail.Session session) | protected String | filter(String tokenStart, String tokenEnd, String s, Properties tokens) Replace occurences of TOKEN_STARTxxxTOKEN_END by value of entry xxx in tokens table. | protected String | getURLNameExpanded(String storeURLNameTemplate, String userid, String password) | protected void | populateRequestAttribute(Request request, MailContext mailContext) Populate request attribute map. | protected void | putXMLizerToRequestAttribute(Request request, Iterator resultIterator) | protected List | retrieveJavaMailObjects(MailContext mailContext) |
REQUEST_ATTRIBUTE_FOLDER | final public static String REQUEST_ATTRIBUTE_FOLDER(Code) | | Request attribute name of a XMLizable folder
|
REQUEST_ATTRIBUTE_FOLDERS | final public static String REQUEST_ATTRIBUTE_FOLDERS(Code) | | Request attribute name of a XMLizable folders object
|
REQUEST_ATTRIBUTE_MESSAGE | final public static String REQUEST_ATTRIBUTE_MESSAGE(Code) | | Request attribute name of a XMLizable message object
|
REQUEST_ATTRIBUTE_MESSAGES | final public static String REQUEST_ATTRIBUTE_MESSAGES(Code) | | Request attribute name of a XMLizable messages object
|
act | public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters par) throws Exception(Code) | | Execute mail commands.
Parameters: redirector - Cocoon's redirector Parameters: resolver - Cocoon's source resolver, used for testing if a source is resolvable Parameters: source - the source, e.g.: index.html Parameters: objectModel - Description of the Parameter Parameters: par - Description of the Parameter exception: Exception - Description of the Exception |
checkProviders | protected void checkProviders(javax.mail.Session session)(Code) | | Check that the provider need is available
Parameters: session - The javamail Session used for checking its providers. |
filter | protected String filter(String tokenStart, String tokenEnd, String s, Properties tokens)(Code) | | Replace occurences of TOKEN_STARTxxxTOKEN_END by value of entry xxx in tokens table.
Parameters: tokenStart - token start marker Parameters: tokenEnd - token end marker Parameters: s - the string examined Parameters: tokens - Description of the Parameter String replaced all tokenized entries of original String s. |
getURLNameExpanded | protected String getURLNameExpanded(String storeURLNameTemplate, String userid, String password)(Code) | | Gets the uRLNameExpanded attribute of the MailGenerator object
Parameters: storeURLNameTemplate - Description of the Parameter Parameters: userid - Description of the Parameter Parameters: password - Description of the Parameter The uRLNameExpanded value |
populateRequestAttribute | protected void populateRequestAttribute(Request request, MailContext mailContext) throws Exception(Code) | | Populate request attribute map.
Execute mail command, and populate request attribute map with
XMLizable javamail objects, created by the mail command
Parameters: request - triggering the creation of javamail objects Parameters: mailContext - javamail context, store, session, folders exception: Exception - Description of the Exception |
putXMLizerToRequestAttribute | protected void putXMLizerToRequestAttribute(Request request, Iterator resultIterator)(Code) | | Put XMLizable javamail objects into request attribute map
Parameters: request - holding the destination attribute map Parameters: resultIterator - Iterator of |
Fields inherited from org.apache.cocoon.acting.ServiceableAction | protected ServiceManager manager(Code)(Java Doc)
|
Methods inherited from org.apache.cocoon.acting.ServiceableAction | public void service(ServiceManager manager) throws ServiceException(Code)(Java Doc)
|
|
|