public class MockPageContext
extends javax.servlet.jsp.PageContext
| 构造器和说明 |
|---|
MockPageContext() |
MockPageContext(javax.servlet.ServletContext servletContext) |
MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request) |
MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletConfig servletConfig) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
findAttribute(String name) |
void |
forward(String path) |
Object |
getAttribute(String name) |
Object |
getAttribute(String name,
int scope) |
Enumeration<String> |
getAttributeNames() |
Enumeration<String> |
getAttributeNamesInScope(int scope) |
int |
getAttributesScope(String name) |
byte[] |
getContentAsByteArray() |
String |
getContentAsString() |
javax.el.ELContext |
getELContext() |
Exception |
getException() |
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator() |
javax.servlet.jsp.JspWriter |
getOut() |
Object |
getPage() |
javax.servlet.ServletRequest |
getRequest() |
javax.servlet.ServletResponse |
getResponse() |
javax.servlet.ServletConfig |
getServletConfig() |
javax.servlet.ServletContext |
getServletContext() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.jsp.el.VariableResolver |
getVariableResolver() |
void |
handlePageException(Exception ex) |
void |
handlePageException(Throwable ex) |
void |
include(String path) |
void |
include(String path,
boolean flush) |
void |
initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush) |
void |
release() |
void |
removeAttribute(String name) |
void |
removeAttribute(String name,
int scope) |
void |
setAttribute(String name,
Object value) |
void |
setAttribute(String name,
Object value,
int scope) |
public MockPageContext()
public MockPageContext(javax.servlet.ServletContext servletContext)
public MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request)
public MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public MockPageContext(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletConfig servletConfig)
public void initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
initialize 在类中 javax.servlet.jsp.PageContextpublic void release()
release 在类中 javax.servlet.jsp.PageContextpublic void setAttribute(String name, Object value)
setAttribute 在类中 javax.servlet.jsp.JspContextpublic void setAttribute(String name, Object value, int scope)
setAttribute 在类中 javax.servlet.jsp.JspContextpublic Object getAttribute(String name)
getAttribute 在类中 javax.servlet.jsp.JspContextpublic Object getAttribute(String name, int scope)
getAttribute 在类中 javax.servlet.jsp.JspContextpublic Object findAttribute(String name)
findAttribute 在类中 javax.servlet.jsp.JspContextpublic void removeAttribute(String name)
removeAttribute 在类中 javax.servlet.jsp.JspContextpublic void removeAttribute(String name, int scope)
removeAttribute 在类中 javax.servlet.jsp.JspContextpublic int getAttributesScope(String name)
getAttributesScope 在类中 javax.servlet.jsp.JspContextpublic Enumeration<String> getAttributeNames()
public Enumeration<String> getAttributeNamesInScope(int scope)
getAttributeNamesInScope 在类中 javax.servlet.jsp.JspContextpublic javax.servlet.jsp.JspWriter getOut()
getOut 在类中 javax.servlet.jsp.JspContextpublic javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator 在类中 javax.servlet.jsp.JspContextpublic javax.el.ELContext getELContext()
getELContext 在类中 javax.servlet.jsp.JspContextpublic javax.servlet.jsp.el.VariableResolver getVariableResolver()
getVariableResolver 在类中 javax.servlet.jsp.JspContextpublic javax.servlet.http.HttpSession getSession()
getSession 在类中 javax.servlet.jsp.PageContextpublic Object getPage()
getPage 在类中 javax.servlet.jsp.PageContextpublic javax.servlet.ServletRequest getRequest()
getRequest 在类中 javax.servlet.jsp.PageContextpublic javax.servlet.ServletResponse getResponse()
getResponse 在类中 javax.servlet.jsp.PageContextpublic Exception getException()
getException 在类中 javax.servlet.jsp.PageContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig 在类中 javax.servlet.jsp.PageContextpublic javax.servlet.ServletContext getServletContext()
getServletContext 在类中 javax.servlet.jsp.PageContextpublic void forward(String path) throws javax.servlet.ServletException, IOException
forward 在类中 javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void include(String path) throws javax.servlet.ServletException, IOException
include 在类中 javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void include(String path, boolean flush) throws javax.servlet.ServletException, IOException
include 在类中 javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic byte[] getContentAsByteArray()
public String getContentAsString() throws UnsupportedEncodingException
public void handlePageException(Exception ex) throws javax.servlet.ServletException, IOException
handlePageException 在类中 javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void handlePageException(Throwable ex) throws javax.servlet.ServletException, IOException
handlePageException 在类中 javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionCopyright © 2024 fossc. All rights reserved.