Class 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)  
    • Constructor Detail

      • MockFilterConfig

        public MockFilterConfig​(javax.servlet.ServletContext pContext,
                                java.lang.String pFilterName,
                                java.util.HashMap pInitParamMap)
    • Method Detail

      • addInitParam

        public void addInitParam​(java.lang.String key,
                                 java.lang.String value)
      • getServletContext

        public javax.servlet.ServletContext getServletContext()
        Specified by:
        getServletContext in interface javax.servlet.FilterConfig
      • getFilterName

        public java.lang.String getFilterName()
        Specified by:
        getFilterName in interface javax.servlet.FilterConfig
      • getInitParameter

        public java.lang.String getInitParameter​(java.lang.String name)
        Specified by:
        getInitParameter in interface javax.servlet.FilterConfig
      • getInitParameterNames

        public java.util.Enumeration getInitParameterNames()
        Specified by:
        getInitParameterNames in interface javax.servlet.FilterConfig