Package com.jalios.jcms.test
Class MockFilterConfig
- java.lang.Object
-
- com.jalios.jcms.test.MockFilterConfig
-
- All Implemented Interfaces:
javax.servlet.FilterConfig
public class MockFilterConfig extends java.lang.Object implements javax.servlet.FilterConfig
Mock FilterConfig to be used for testing purpose only.- Since:
- jcms-5.7.4
-
-
Constructor Summary
Constructors Constructor Description MockFilterConfig(javax.servlet.ServletContext pContext, java.lang.String pFilterName, java.util.HashMap pInitParamMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInitParam(java.lang.String key, java.lang.String value)
java.lang.String
getFilterName()
java.lang.String
getInitParameter(java.lang.String name)
java.util.Enumeration
getInitParameterNames()
javax.servlet.ServletContext
getServletContext()
-
-
-
Method Detail
-
addInitParam
public void addInitParam(java.lang.String key, java.lang.String value)
-
getServletContext
public javax.servlet.ServletContext getServletContext()
- Specified by:
getServletContext
in interfacejavax.servlet.FilterConfig
-
getFilterName
public java.lang.String getFilterName()
- Specified by:
getFilterName
in interfacejavax.servlet.FilterConfig
-
getInitParameter
public java.lang.String getInitParameter(java.lang.String name)
- Specified by:
getInitParameter
in interfacejavax.servlet.FilterConfig
-
getInitParameterNames
public java.util.Enumeration getInitParameterNames()
- Specified by:
getInitParameterNames
in interfacejavax.servlet.FilterConfig
-
-