com.mockrunner.mock.web
Class MockFilterConfig

java.lang.Object
  extended by com.mockrunner.mock.web.MockFilterConfig
All Implemented Interfaces:
javax.servlet.FilterConfig

public class MockFilterConfig
extends java.lang.Object
implements javax.servlet.FilterConfig

Mock implementation of FilterConfig.


Constructor Summary
MockFilterConfig()
           
 
Method Summary
 void clearInitParameters()
           
 java.lang.String getFilterName()
           
 java.lang.String getInitParameter(java.lang.String name)
          Clears the init parameters.
 java.util.Enumeration getInitParameterNames()
           
 javax.servlet.ServletContext getServletContext()
           
 void setFilterName(java.lang.String name)
           
 void setInitParameter(java.lang.String name, java.lang.String value)
          Sets an init parameter.
 void setInitParameters(java.util.Map parameters)
          Sets several init parameters.
 void setupServletContext(javax.servlet.ServletContext context)
          Sets the ServletContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFilterConfig

public MockFilterConfig()
Method Detail

setupServletContext

public void setupServletContext(javax.servlet.ServletContext context)
Sets the ServletContext.

Parameters:
context - the ServletContext

getFilterName

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

setFilterName

public void setFilterName(java.lang.String name)

getServletContext

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

clearInitParameters

public void clearInitParameters()

getInitParameter

public java.lang.String getInitParameter(java.lang.String name)
Clears the init parameters.

Specified by:
getInitParameter in interface javax.servlet.FilterConfig

setInitParameter

public void setInitParameter(java.lang.String name,
                             java.lang.String value)
Sets an init parameter.

Parameters:
name - the name
value - the value

setInitParameters

public void setInitParameters(java.util.Map parameters)
Sets several init parameters.

Parameters:
parameters - the parameter map

getInitParameterNames

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