org.tinygroup.jspengine.runtime
类 PageContextImpl
java.lang.Object
javax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.tinygroup.jspengine.runtime.PageContextImpl
public class PageContextImpl
- extends javax.servlet.jsp.PageContext
Implementation of the PageContext class from the JSP spec.
- 作者:
- Anil K. Vijendran, Larry Cable, Hans Bergsten, Pierre Delisle, Mark Roth, Jan Luehe, Kin-man Chung
| 从类 javax.servlet.jsp.PageContext 继承的字段 |
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
|
方法摘要 |
static Object |
evaluateExpression(String expression,
Class expectedType,
javax.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMap)
Evaluates an EL expression |
Object |
findAttribute(String name)
|
void |
forward(String relativeUrlPath)
|
Object |
getAttribute(String name)
|
Object |
getAttribute(String name,
int scope)
|
Enumeration<String> |
getAttributeNamesInScope(int scope)
|
int |
getAttributesScope(String name)
|
javax.el.ELContext |
getELContext()
|
Exception |
getException()
Returns the exception associated with this page context, if any. |
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator()
Provides programmatic access to the ExpressionEvaluator. |
static javax.el.MethodExpression |
getMethodExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
javax.el.FunctionMapper functionMap,
Class expectedType,
Class[] paramTypes)
|
javax.servlet.jsp.JspWriter |
getOut()
|
Object |
getPage()
|
javax.servlet.ServletRequest |
getRequest()
|
javax.servlet.ServletResponse |
getResponse()
|
javax.servlet.Servlet |
getServlet()
|
javax.servlet.ServletConfig |
getServletConfig()
|
javax.servlet.ServletContext |
getServletContext()
|
javax.servlet.http.HttpSession |
getSession()
|
static javax.el.ValueExpression |
getValueExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
Class expectedType,
javax.el.FunctionMapper functionMap)
|
javax.servlet.jsp.el.VariableResolver |
getVariableResolver()
|
void |
handlePageException(Exception ex)
|
void |
handlePageException(Throwable t)
|
void |
include(String relativeUrlPath)
|
void |
include(String relativeUrlPath,
boolean flush)
|
void |
initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
|
javax.servlet.jsp.JspWriter |
popBody()
|
javax.servlet.jsp.tagext.BodyContent |
pushBody()
|
javax.servlet.jsp.JspWriter |
pushBody(Writer writer)
|
void |
release()
|
void |
removeAttribute(String name)
|
void |
removeAttribute(String name,
int scope)
|
void |
setAttribute(String name,
Object attribute)
|
void |
setAttribute(String name,
Object o,
int scope)
|
static void |
setMethodVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.MethodExpression expression)
|
static void |
setValueVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.ValueExpression expression)
|
| 从类 javax.servlet.jsp.PageContext 继承的方法 |
getErrorData |
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialize
public void initialize(javax.servlet.Servlet servlet,
javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 initialize
- 抛出:
IOException
release
public void release()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 release
getAttribute
public Object getAttribute(String name)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getAttribute
getAttribute
public Object getAttribute(String name,
int scope)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getAttribute
setAttribute
public void setAttribute(String name,
Object attribute)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 setAttribute
setAttribute
public void setAttribute(String name,
Object o,
int scope)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 setAttribute
removeAttribute
public void removeAttribute(String name,
int scope)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 removeAttribute
getAttributesScope
public int getAttributesScope(String name)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getAttributesScope
findAttribute
public Object findAttribute(String name)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 findAttribute
getAttributeNamesInScope
public Enumeration<String> getAttributeNamesInScope(int scope)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getAttributeNamesInScope
removeAttribute
public void removeAttribute(String name)
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 removeAttribute
getOut
public javax.servlet.jsp.JspWriter getOut()
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getOut
getSession
public javax.servlet.http.HttpSession getSession()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getSession
getServlet
public javax.servlet.Servlet getServlet()
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getServletConfig
getServletContext
public javax.servlet.ServletContext getServletContext()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getServletContext
getRequest
public javax.servlet.ServletRequest getRequest()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getRequest
getResponse
public javax.servlet.ServletResponse getResponse()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getResponse
getException
public Exception getException()
- Returns the exception associated with this page context, if any.
Added wrapping for Throwables to avoid ClassCastException
(see Bugzilla 31171 for details).
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getException
- 返回:
- The Exception associated with this page context, if any.
getPage
public Object getPage()
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 getPage
include
public void include(String relativeUrlPath)
throws javax.servlet.ServletException,
IOException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 include
- 抛出:
javax.servlet.ServletException
IOException
include
public void include(String relativeUrlPath,
boolean flush)
throws javax.servlet.ServletException,
IOException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 include
- 抛出:
javax.servlet.ServletException
IOException
getVariableResolver
public javax.servlet.jsp.el.VariableResolver getVariableResolver()
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getVariableResolver
getELContext
public javax.el.ELContext getELContext()
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getELContext
forward
public void forward(String relativeUrlPath)
throws javax.servlet.ServletException,
IOException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 forward
- 抛出:
javax.servlet.ServletException
IOException
pushBody
public javax.servlet.jsp.tagext.BodyContent pushBody()
- 覆盖:
- 类
javax.servlet.jsp.PageContext 中的 pushBody
pushBody
public javax.servlet.jsp.JspWriter pushBody(Writer writer)
- 覆盖:
- 类
javax.servlet.jsp.JspContext 中的 pushBody
popBody
public javax.servlet.jsp.JspWriter popBody()
- 覆盖:
- 类
javax.servlet.jsp.JspContext 中的 popBody
getExpressionEvaluator
public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
- Provides programmatic access to the ExpressionEvaluator.
The JSP Container must return a valid instance of an
ExpressionEvaluator that can parse EL expressions.
- 指定者:
- 类
javax.servlet.jsp.JspContext 中的 getExpressionEvaluator
handlePageException
public void handlePageException(Exception ex)
throws IOException,
javax.servlet.ServletException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 handlePageException
- 抛出:
IOException
javax.servlet.ServletException
handlePageException
public void handlePageException(Throwable t)
throws IOException,
javax.servlet.ServletException
- 指定者:
- 类
javax.servlet.jsp.PageContext 中的 handlePageException
- 抛出:
IOException
javax.servlet.ServletException
evaluateExpression
public static Object evaluateExpression(String expression,
Class expectedType,
javax.servlet.jsp.PageContext pageContext,
ProtectedFunctionMapper functionMap)
throws javax.el.ELException
- Evaluates an EL expression
- 参数:
expression - The expression to be evaluatedexpectedType - The expected resulting typepageContext - The page contextfunctionMap - Maps prefix and name to Method
- 返回:
- The result of the evaluation
- 抛出:
javax.el.ELException
getValueExpression
public static javax.el.ValueExpression getValueExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
Class expectedType,
javax.el.FunctionMapper functionMap)
getMethodExpression
public static javax.el.MethodExpression getMethodExpression(String expression,
javax.servlet.jsp.PageContext pageContext,
javax.el.FunctionMapper functionMap,
Class expectedType,
Class[] paramTypes)
setValueVariable
public static void setValueVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.ValueExpression expression)
setMethodVariable
public static void setMethodVariable(javax.servlet.jsp.PageContext pageContext,
String variable,
javax.el.MethodExpression expression)
Copyright © 2006–2014 开源组织. All rights reserved.