com.mockrunner.mock.web
Class MockJspFactory

java.lang.Object
  extended by javax.servlet.jsp.JspFactory
      extended by com.mockrunner.mock.web.MockJspFactory

public class MockJspFactory
extends javax.servlet.jsp.JspFactory

Mock implementation of JspFactory. This implementation returns null for getJspApplicationContext(javax.servlet.ServletContext). For full support of JspApplicationContext use JasperJspFactory.


Constructor Summary
MockJspFactory()
           
 
Method Summary
 javax.servlet.jsp.JspEngineInfo getEngineInfo()
           
 javax.servlet.jsp.JspApplicationContext getJspApplicationContext(javax.servlet.ServletContext context)
           
 javax.servlet.jsp.PageContext getPageContext()
          Returns the PageContext.
 javax.servlet.jsp.PageContext getPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, java.lang.String errorPageURL, boolean needsSession, int buffer, boolean autoflush)
           
 void releasePageContext(javax.servlet.jsp.PageContext pageContext)
           
 void setEngineInfo(javax.servlet.jsp.JspEngineInfo engineInfo)
          Set the JspEngineInfo.
 void setJspApplicationContext(javax.servlet.jsp.JspApplicationContext applicationContext)
          Set the JspApplicationContext.
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
          Set the PageContext.
 
Methods inherited from class javax.servlet.jsp.JspFactory
getDefaultFactory, setDefaultFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockJspFactory

public MockJspFactory()
Method Detail

setEngineInfo

public void setEngineInfo(javax.servlet.jsp.JspEngineInfo engineInfo)
Set the JspEngineInfo. Per default, MockJspEngineInfo is used.

Parameters:
engineInfo - the JspEngineInfo

setJspApplicationContext

public void setJspApplicationContext(javax.servlet.jsp.JspApplicationContext applicationContext)
Set the JspApplicationContext.

Parameters:
applicationContext - the JspApplicationContext

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the PageContext.

Parameters:
pageContext - the PageContext

getPageContext

public javax.servlet.jsp.PageContext getPageContext()
Returns the PageContext.

Returns:
the PageContext

getEngineInfo

public javax.servlet.jsp.JspEngineInfo getEngineInfo()
Specified by:
getEngineInfo in class javax.servlet.jsp.JspFactory

getJspApplicationContext

public javax.servlet.jsp.JspApplicationContext getJspApplicationContext(javax.servlet.ServletContext context)
Specified by:
getJspApplicationContext in class javax.servlet.jsp.JspFactory

getPageContext

public javax.servlet.jsp.PageContext getPageContext(javax.servlet.Servlet servlet,
                                                    javax.servlet.ServletRequest request,
                                                    javax.servlet.ServletResponse response,
                                                    java.lang.String errorPageURL,
                                                    boolean needsSession,
                                                    int buffer,
                                                    boolean autoflush)
Specified by:
getPageContext in class javax.servlet.jsp.JspFactory

releasePageContext

public void releasePageContext(javax.servlet.jsp.PageContext pageContext)
Specified by:
releasePageContext in class javax.servlet.jsp.JspFactory