net.sourceforge.stripes.mock
Class MockBaseConfig

java.lang.Object
  extended by net.sourceforge.stripes.mock.MockBaseConfig
Direct Known Subclasses:
MockFilterConfig, MockServletConfig

public class MockBaseConfig
extends Object

Common parent class for both MockServletConfig and MockFilterConfig since they are both essentially the same with a couple of method names changed.

Since:
Stripes 1.1.1
Author:
Tim Fennell

Constructor Summary
MockBaseConfig()
           
 
Method Summary
 void addAllInitParameters(Map<String,String> parameters)
          Adds all the values in the provided Map to the set of init parameters.
 void addInitParameter(String name, String value)
          Adds a value to the set of init parameters.
 String getInitParameter(String name)
          Gets the named init parameter if it exists, or null if it doesn't.
 Enumeration<String> getInitParameterNames()
          Gets an enumeration of all the init parameter names present.
 ServletContext getServletContext()
          Gets the ServletContext in whiich the filter is running.
 void setServletContext(ServletContext ctx)
          Sets the ServletContext that will be returned by getServletContext().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockBaseConfig

public MockBaseConfig()
Method Detail

setServletContext

public void setServletContext(ServletContext ctx)
Sets the ServletContext that will be returned by getServletContext().


getServletContext

public ServletContext getServletContext()
Gets the ServletContext in whiich the filter is running.


addInitParameter

public void addInitParameter(String name,
                             String value)
Adds a value to the set of init parameters.


addAllInitParameters

public void addAllInitParameters(Map<String,String> parameters)
Adds all the values in the provided Map to the set of init parameters.


getInitParameter

public String getInitParameter(String name)
Gets the named init parameter if it exists, or null if it doesn't.


getInitParameterNames

public Enumeration<String> getInitParameterNames()
Gets an enumeration of all the init parameter names present.



? Copyright 2005-2006, Stripes Development Team.