Class ServletWrapperConfig
- java.lang.Object
-
- org.ametys.core.servletwrapper.servlet.ServletWrapperConfig
-
- All Implemented Interfaces:
ServletConfig
public class ServletWrapperConfig extends Object implements ServletConfig
The wrapped servlet configuration based on configuration parameters (as if there were a web.xml)
-
-
Field Summary
Fields Modifier and Type Field Description private Enumeration<String>
_enumParameters
private Map<String,String>
_parameters
private ServletContext
_servletContext
private String
_servletName
-
Constructor Summary
Constructors Constructor Description ServletWrapperConfig(String servletName, ServletContext servletContext, Map<String,String> parameters)
set the configuration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getInitParameter(String name)
Enumeration<String>
getInitParameterNames()
ServletContext
getServletContext()
String
getServletName()
-
-
-
Field Detail
-
_servletName
private String _servletName
-
_servletContext
private ServletContext _servletContext
-
_parameters
private Map<String,String> _parameters
-
_enumParameters
private Enumeration<String> _enumParameters
-
-
Constructor Detail
-
ServletWrapperConfig
public ServletWrapperConfig(String servletName, ServletContext servletContext, Map<String,String> parameters)
set the configuration- Parameters:
servletName
- servlet-nameservletContext
- Contextparameters
- init-param
-
-
Method Detail
-
getServletName
public String getServletName()
- Specified by:
getServletName
in interfaceServletConfig
-
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContext
in interfaceServletConfig
-
getInitParameter
public String getInitParameter(String name)
- Specified by:
getInitParameter
in interfaceServletConfig
-
getInitParameterNames
public Enumeration<String> getInitParameterNames()
- Specified by:
getInitParameterNames
in interfaceServletConfig
-
-