Class MockServletConfig
java.lang.Object
org.apache.commons.chain.web.javax.servlet.MockServletConfig
- All Implemented Interfaces:
- javax.servlet.ServletConfig
Mock 
ServletConfig implementation.- 
Constructor SummaryConstructorsConstructorDescriptionDefault Constructor.MockServletConfig(String servletName) Construct an instance with the specified name.MockServletConfig(String servletName, javax.servlet.ServletContext servletContext) Construct an instance with the specified name and context.
- 
Method SummaryModifier and TypeMethodDescriptiongetInitParameter(String name) Get a specified init parameter.Get the init parameter names.javax.servlet.ServletContextGet the servlet context.Return the servlet name.voidsetInitParameter(String name, String value) Set a specified init parameter.
- 
Constructor Details- 
MockServletConfigpublic MockServletConfig()Default Constructor.
- 
MockServletConfigConstruct an instance with the specified name.- Parameters:
- servletName- the servlet name
 
- 
MockServletConfigConstruct an instance with the specified name and context.- Parameters:
- servletName- the servlet name
- servletContext- the servlet context
 
 
- 
- 
Method Details- 
getInitParameterGet a specified init parameter.- Specified by:
- getInitParameterin interface- javax.servlet.ServletConfig
- Parameters:
- name- parameter name
- Returns:
- the parameter value
 
- 
getInitParameterNamesGet the init parameter names.- Specified by:
- getInitParameterNamesin interface- javax.servlet.ServletConfig
- Returns:
- the set of parameter names
 
- 
getServletContextGet the servlet context.- Specified by:
- getServletContextin interface- javax.servlet.ServletConfig
- Returns:
- the servlet context
 
- 
getServletNameReturn the servlet name.- Specified by:
- getServletNamein interface- javax.servlet.ServletConfig
- Returns:
- The servlet name
 
- 
setInitParameterSet a specified init parameter.- Parameters:
- name- parameter name
- value- the parameter value
 
 
-