| javax.servlet.jsp.PageContext com.mockrunner.mock.web.MockPageContext
MockPageContext | public class MockPageContext extends PageContext (Code) | | Mock implementation of PageContext .
Please note that EL support using the
the Unified Expression Language API is only available,
if the
JasperJspFactory is configured as the default
JspFactory . By default,
MockPageContext.getELContext returns null .
|
Method Summary | |
public Object | findAttribute(String name) | public void | forward(String path) | public Object | getAttribute(String name) | public Object | getAttribute(String name, int scope) | public Enumeration | getAttributeNamesInScope(int scope) | public int | getAttributesScope(String name) | public Exception | getException() | public JspWriter | getOut() | public Object | getPage() | public ServletRequest | getRequest() | public ServletResponse | getResponse() | public ServletConfig | getServletConfig() | public ServletContext | getServletContext() | public HttpSession | getSession() | public void | handlePageException(Exception exc) | public void | handlePageException(Throwable thr) | public void | include(String path) | public void | include(String path, boolean flush) | public void | initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) | public JspWriter | popBody() | public BodyContent | pushBody() | public JspWriter | pushBody(Writer writer) | public void | release() | public void | removeAttribute(String name) | public void | removeAttribute(String name, int scope) | public void | setAttribute(String name, Object value) | public void | setAttribute(String name, Object value, int scope) | public void | setException(Exception exception) | public void | setJspWriter(JspWriter jspWriter) This method allows to set custom implementations
of JspWriter . | public void | setPage(Object page) | public void | setServletConfig(ServletConfig config) Sets the ServletConfig . | public void | setServletRequest(ServletRequest request) Sets the ServletRequest . | public void | setServletResponse(ServletResponse response) Sets the ServletResponse . |
MockPageContext | public MockPageContext()(Code) | | |
getAttributesScope | public int getAttributesScope(String name)(Code) | | |
release | public void release()(Code) | | |
removeAttribute | public void removeAttribute(String name)(Code) | | |
removeAttribute | public void removeAttribute(String name, int scope)(Code) | | |
setJspWriter | public void setJspWriter(JspWriter jspWriter)(Code) | | This method allows to set custom implementations
of JspWriter . Per default,
MockJspWriter is used.
Parameters: jspWriter - the JspWriter |
setServletConfig | public void setServletConfig(ServletConfig config)(Code) | | Sets the ServletConfig .
Parameters: config - the ServletConfig |
setServletRequest | public void setServletRequest(ServletRequest request)(Code) | | Sets the ServletRequest .
Parameters: request - the ServletRequest |
setServletResponse | public void setServletResponse(ServletResponse response)(Code) | | Sets the ServletResponse .
Parameters: response - the ServletResponse |
Methods inherited from javax.servlet.jsp.PageContext | abstract public void forward(String relativeUrlPath) throws ServletException, IOException(Code)(Java Doc) public ErrorData getErrorData()(Code)(Java Doc) abstract public Exception getException()(Code)(Java Doc) abstract public Object getPage()(Code)(Java Doc) abstract public ServletRequest getRequest()(Code)(Java Doc) abstract public ServletResponse getResponse()(Code)(Java Doc) abstract public ServletConfig getServletConfig()(Code)(Java Doc) abstract public ServletContext getServletContext()(Code)(Java Doc) abstract public HttpSession getSession()(Code)(Java Doc) abstract public void handlePageException(Exception e) throws ServletException, IOException(Code)(Java Doc) abstract public void handlePageException(Throwable t) throws ServletException, IOException(Code)(Java Doc) abstract public void include(String relativeUrlPath) throws ServletException, IOException(Code)(Java Doc) abstract public void include(String relativeUrlPath, boolean flush) throws ServletException, IOException(Code)(Java Doc) abstract public void initialize(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int bufferSize, boolean autoFlush) throws IOException, IllegalStateException, IllegalArgumentException(Code)(Java Doc) public BodyContent pushBody()(Code)(Java Doc) abstract public void release()(Code)(Java Doc)
|
|
|