com.mockrunner.mock.web
Class JasperJspFactory

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

public class JasperJspFactory
extends javax.servlet.jsp.JspFactory

This implementation of JspFactory provides full support of the Unified Expression Language API. Expression evaluation is available only for the Unified Expression Language API, not for the pre JSP 2.1 javax.servlet.jsp.el Expression Language API.


Constructor Summary
JasperJspFactory()
           
 
Method Summary
 JasperJspFactory configure(WebMockObjectFactory mockFactory)
          Configures this implementation for EL support.
 javax.servlet.jsp.JspEngineInfo getEngineInfo()
           
 javax.servlet.jsp.JspApplicationContext getJspApplicationContext(javax.servlet.ServletContext context)
           
 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.
 
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

JasperJspFactory

public JasperJspFactory()
Method Detail

configure

public JasperJspFactory configure(WebMockObjectFactory mockFactory)
Configures this implementation for EL support. Use getWebMockObjectFactory().setDefaultJspFactory(new JasperJspFactory().configure(getWebMockObjectFactory())); to set this implementation as the default factory.

Returns:
this instance for convenience

setEngineInfo

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

Parameters:
engineInfo - the JspEngineInfo

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