|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.context.DefaultContext org.apache.cocoon.mail.MailContext
public class MailContext
Encapsulation of context info of this webmail application
Field Summary | |
---|---|
static String |
MAIL_CURRENT_WORKING_COMMAND_ENTRY
Description of the Field |
static String |
MAIL_CURRENT_WORKING_FOLDER_ENTRY
Description of the Field |
static String |
MAIL_SESSION_ENTRY
Description of the Field |
static String |
MAIL_STORE_ENTRY
Description of the Field |
static String |
SESSION_MAIL_CONTEXT
attribute name of MailContext object in an application session, eg http-session |
Method Summary | |
---|---|
protected String |
canoncializeFoldername(String fn)
Description of the Method |
void |
enableLogging(Logger logger)
Description of the Method |
Object |
get(Object key)
A specialization of the plain Context get method. |
Object |
getFolder(String folderName)
Gets the folder attribute of the MailContext object |
protected Logger |
getLogger()
Gets the logger attribute of the MailContext object |
protected String |
getParameter(String key)
Gets the parameter attribute of the MailContext object |
protected Integer |
getParameterAsInteger(String key)
Gets the parameterAsInteger attribute of the MailContext object |
Folder |
getTheFolder(String entry)
Gets the theFolder attribute of the MailContext object |
void |
putFolder(Folder folder)
put a folder in this MailContext object map |
void |
putFolder(Folder[] folders)
Description of the Method |
void |
removeAllFolders()
remove all folders in this MailContext object |
void |
removeStore()
Remove and close Store of this MailContext, implicitly remove all folders, too. |
void |
setRequest(Request request)
Sets the request attribute of the MailContext object |
Methods inherited from class org.apache.avalon.framework.context.DefaultContext |
---|
checkWriteable, equals, getContextData, getParent, hashCode, hide, makeReadOnly, put |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESSION_MAIL_CONTEXT
public static final String MAIL_SESSION_ENTRY
public static final String MAIL_STORE_ENTRY
public static final String MAIL_CURRENT_WORKING_FOLDER_ENTRY
public static final String MAIL_CURRENT_WORKING_COMMAND_ENTRY
Method Detail |
---|
public void setRequest(Request request)
request
- The new request valuepublic Object get(Object key) throws ContextException
Implementing special key prefixes
get
in interface Context
get
in class DefaultContext
key
- Description of the Parameter
ContextException
- Description of the Exceptionpublic Folder getTheFolder(String entry) throws ContextException
entry
- Description of the Parameter
ContextException
- Description of the Exceptionpublic Object getFolder(String folderName) throws ContextException
folderName
- Description of the Parameter
ContextException
- Description of the Exceptionpublic void removeStore()
public void removeAllFolders()
public void putFolder(Folder folder) throws ContextException
folder
- Description of the Parameter
ContextException
- Description of the Exceptionpublic void putFolder(Folder[] folders) throws ContextException
folders
- Description of the Parameter
ContextException
- Description of the Exceptionpublic void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- Description of the Parameterprotected String getParameter(String key)
key
- Description of the Parameter
protected Integer getParameterAsInteger(String key)
key
- Description of the Parameter
protected Logger getLogger()
protected String canoncializeFoldername(String fn)
fn
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |