org.springframework.mock.web
Class MockFilterConfig
java.lang.Object
org.springframework.mock.web.MockFilterConfig
- All Implemented Interfaces:
- javax.servlet.FilterConfig
- public class MockFilterConfig
- extends java.lang.Object
- implements javax.servlet.FilterConfig
Mock implementation of the FilterConfig interface.
Used for testing the web framework; typically not
necessary for testing application controllers.
- Author:
- Juergen Hoeller
Constructor Summary |
MockFilterConfig(javax.servlet.ServletContext servletContext)
Create new MockServletConfig with empty String as name. |
MockFilterConfig(javax.servlet.ServletContext servletContext,
java.lang.String name)
Create new MockServletConfig. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockFilterConfig
public MockFilterConfig(javax.servlet.ServletContext servletContext)
- Create new MockServletConfig with empty String as name.
- Parameters:
servletContext
- the ServletContext that the servlet runs in
MockFilterConfig
public MockFilterConfig(javax.servlet.ServletContext servletContext,
java.lang.String name)
- Create new MockServletConfig.
- Parameters:
servletContext
- the ServletContext that the servlet runs inname
- the name of the servlet
addInitParameter
public void addInitParameter(java.lang.String name,
java.lang.String value)
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
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
Copyright (C) 2003-2004 The Spring Framework Project.