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)
-
-
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()
-
-
-
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
-
-