|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.portal.struts.common.ModuleContext
public class ModuleContext
The ModuleContext
class is used for
storing and retrieving objects in a context taking into account
application prefixes.
Constructor Summary | |
---|---|
ModuleContext(ActionServlet actionServlet,
ModuleConfig moduleConfig)
Constructs the ModuleContext object. |
|
ModuleContext(ServletContext servletContext,
java.lang.String modulePrefix)
Constructs the ModuleContext object. |
Method Summary | |
---|---|
java.lang.Object |
getObject(java.lang.String key)
Gets the object stored by key and takes into account the previously saved module prefix. |
java.lang.String |
getPrefix()
Returns the saved prefix. |
ServletContext |
getServletContext()
Returns the servlet context. |
void |
removeObject(java.lang.String key)
Removes the object stored by key and taking into account the previously saved module prefix. |
void |
setPrefix(java.lang.String prefix)
Sets the prefix to be returned. |
void |
storeObject(java.lang.String key,
java.lang.Object value)
Stores the given object by key and taking into account the previously saved module prefix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleContext(ActionServlet actionServlet, ModuleConfig moduleConfig)
actionServlet
- the action servlet object, can not be null
moduleConfig
- ModuleConfig object, can not be null
java.lang.NullPointerException
- if the parameters are null
public ModuleContext(ServletContext servletContext, java.lang.String modulePrefix)
servletContext
- the servlet context, can not be null
modulePrefix
- module prefix, can not be null
java.lang.NullPointerException
- if the parameters are null
Method Detail |
---|
public java.lang.Object getObject(java.lang.String key)
key
- identifies object (not including application prefix)
null
public void removeObject(java.lang.String key)
key
- identifies objectpublic void storeObject(java.lang.String key, java.lang.Object value)
key
- identifies objectvalue
- the value to savepublic java.lang.String getPrefix()
public void setPrefix(java.lang.String prefix)
prefix
- the prefixpublic ServletContext getServletContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |