Package mondrian.tui
Class MockServletConfig
- java.lang.Object
-
- mondrian.tui.MockServletConfig
-
- All Implemented Interfaces:
javax.servlet.ServletConfig
public class MockServletConfig extends Object implements javax.servlet.ServletConfig
This is a partial implementation of the ServletConfig where just enough is present to allow for communication between Mondrian's XMLA code and other code in the same JVM. Currently it is used in both the CmdRunner and in XMLA JUnit tests.If you need to add to this implementation, please do so.
- Author:
- Richard M. Emberson
-
-
Constructor Summary
Constructors Constructor Description MockServletConfig()MockServletConfig(javax.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInitParameter(String key, String value)StringgetInitParameter(String key)Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.EnumerationgetInitParameterNames()Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.javax.servlet.ServletContextgetServletContext()Returns a reference to the ServletContext in which the servlet is executing.StringgetServletName()Returns the name of this servlet instance.voidsetServletContext(javax.servlet.ServletContext servletContext)voidsetServletName(String servletName)
-
-
-
Method Detail
-
getServletName
public String getServletName()
Returns the name of this servlet instance.- Specified by:
getServletNamein interfacejavax.servlet.ServletConfig
-
getServletContext
public javax.servlet.ServletContext getServletContext()
Returns a reference to the ServletContext in which the servlet is executing.- Specified by:
getServletContextin interfacejavax.servlet.ServletConfig
-
getInitParameter
public String getInitParameter(String key)
Returns a String containing the value of the named initialization parameter, or null if the parameter does not exist.- Specified by:
getInitParameterin interfacejavax.servlet.ServletConfig
-
getInitParameterNames
public Enumeration getInitParameterNames()
Returns the names of the servlet's initialization parameters as an Enumeration of String objects, or an empty Enumeration if the servlet has no initialization parameters.- Specified by:
getInitParameterNamesin interfacejavax.servlet.ServletConfig
-
setServletName
public void setServletName(String servletName)
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
-
-