com.jalios.jcms.test
Class MockFilterConfig

java.lang.Object
  extended by com.jalios.jcms.test.MockFilterConfig
All Implemented Interfaces:
javax.servlet.FilterConfig

public class MockFilterConfig
extends Object
implements javax.servlet.FilterConfig

Mock FilterConfig to be used for testing purpose only.

Since:
jcms-5.7.4
Version:
$Revision: 20783 $

Constructor Summary
MockFilterConfig(javax.servlet.ServletContext pContext, String pFilterName, HashMap pInitParamMap)
           
 
Method Summary
 void addInitParam(String key, String value)
           
 String getFilterName()
           
 String getInitParameter(String name)
           
 Enumeration getInitParameterNames()
           
 javax.servlet.ServletContext getServletContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFilterConfig

public MockFilterConfig(javax.servlet.ServletContext pContext,
                        String pFilterName,
                        HashMap pInitParamMap)
Method Detail

addInitParam

public void addInitParam(String key,
                         String value)

getServletContext

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

getFilterName

public String getFilterName()
Specified by:
getFilterName in interface javax.servlet.FilterConfig

getInitParameter

public String getInitParameter(String name)
Specified by:
getInitParameter in interface javax.servlet.FilterConfig

getInitParameterNames

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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.