Package org.apache.catalina.core
Class StandardWrapperFacade
- java.lang.Object
-
- org.apache.catalina.core.StandardWrapperFacade
-
- All Implemented Interfaces:
ServletConfig
public final class StandardWrapperFacade extends Object implements ServletConfig
Facade for the StandardWrapper object.- Author:
- Remy Maucherat
-
-
Constructor Summary
Constructors Constructor Description StandardWrapperFacade(StandardWrapper config)Create a new facade around a StandardWrapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInitParameter(String name)Returns aStringcontaining the value of the named initialization parameter, ornullif the parameter does not exist.Enumeration<String>getInitParameterNames()Returns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.ServletContextgetServletContext()Returns a reference to theServletContextin which the caller is executing.StringgetServletName()Returns the name of this servlet instance.
-
-
-
Constructor Detail
-
StandardWrapperFacade
public StandardWrapperFacade(StandardWrapper config)
Create a new facade around a StandardWrapper.- Parameters:
config- the associated wrapper
-
-
Method Detail
-
getServletName
public String getServletName()
Description copied from interface:javax.servlet.ServletConfigReturns the name of this servlet instance. The name may be provided via server administration, assigned in the web application deployment descriptor, or for an unregistered (and thus unnamed) servlet instance it will be the servlet's class name.- Specified by:
getServletNamein interfaceServletConfig- Returns:
- the name of the servlet instance
-
getServletContext
public ServletContext getServletContext()
Description copied from interface:javax.servlet.ServletConfigReturns a reference to theServletContextin which the caller is executing.- Specified by:
getServletContextin interfaceServletConfig- Returns:
- a
ServletContextobject, used by the caller to interact with its servlet container - See Also:
ServletContext
-
getInitParameter
public String getInitParameter(String name)
Description copied from interface:javax.servlet.ServletConfigReturns aStringcontaining the value of the named initialization parameter, ornullif the parameter does not exist.- Specified by:
getInitParameterin interfaceServletConfig- Parameters:
name- aStringspecifying the name of the initialization parameter- Returns:
- a
Stringcontaining the value of the initialization parameter
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
Description copied from interface:javax.servlet.ServletConfigReturns the names of the servlet's initialization parameters as anEnumerationofStringobjects, or an emptyEnumerationif the servlet has no initialization parameters.- Specified by:
getInitParameterNamesin interfaceServletConfig- Returns:
- an
EnumerationofStringobjects containing the names of the servlet's initialization parameters
-
-