|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cactus.server.AbstractServletConfigWrapper
Abstract wrapper around ServletConfig which overrides the
getServletContext() method to return our own wrapper around
ServletContext. This class provides a common implementation
of the wrapper for the different servlet API.
| Field Summary | |
protected java.util.Hashtable |
initParameters
List of parameters set using the setInitParameter() method. |
protected javax.servlet.ServletConfig |
originalConfig
The original servlet config object |
protected java.lang.String |
servletName
Simulated name of the servlet |
| Constructor Summary | |
AbstractServletConfigWrapper(javax.servlet.ServletConfig theOriginalConfig)
|
|
| Method Summary | |
java.lang.String |
getInitParameter(java.lang.String theName)
|
java.util.Enumeration |
getInitParameterNames()
|
javax.servlet.ServletConfig |
getOriginalConfig()
|
javax.servlet.ServletContext |
getServletContext()
|
java.lang.String |
getServletName()
|
void |
setInitParameter(java.lang.String theName,
java.lang.String theValue)
Sets a parameter as if it were set in the web.xml file. |
void |
setServletName(java.lang.String theServletName)
Sets the servlet name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.servlet.ServletConfig originalConfig
protected java.util.Hashtable initParameters
setInitParameter() method.
protected java.lang.String servletName
| Constructor Detail |
public AbstractServletConfigWrapper(javax.servlet.ServletConfig theOriginalConfig)
theOriginalConfig - the original servlet config object| Method Detail |
public void setInitParameter(java.lang.String theName,
java.lang.String theValue)
web.xml file.
theName - the parameter's nametheValue - the parameter's valuepublic void setServletName(java.lang.String theServletName)
getServletName() method.
theServletName - the servlet's namepublic javax.servlet.ServletConfig getOriginalConfig()
public javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.ServletConfigpublic java.lang.String getInitParameter(java.lang.String theName)
getInitParameter in interface javax.servlet.ServletConfigtheName - the name of the parameter's value to return
setInitParameter() method
and then in those set in web.xml.public java.util.Enumeration getInitParameterNames()
getInitParameterNames in interface javax.servlet.ServletConfigweb.xml file and the one set using the
setInitParameter() method.public java.lang.String getServletName()
getServletName in interface javax.servlet.ServletConfig
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||