org.apache.velocity.tools.view.jsp.jspimpl
Class VelocityPageContext
java.lang.Object
javax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.apache.velocity.tools.view.jsp.jspimpl.VelocityPageContext
public class VelocityPageContext
- extends PageContext
Exposes a Velocity Context, a request and a response as a PageContext.
| Fields inherited from class javax.servlet.jsp.PageContext |
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
|
Method Summary |
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()
|
javax.servlet.jsp.el.ExpressionEvaluator |
getExpressionEvaluator()
|
JspWriter |
getOut()
|
Object |
getPage()
|
ServletRequest |
getRequest()
|
ServletResponse |
getResponse()
|
ServletConfig |
getServletConfig()
|
ServletContext |
getServletContext()
|
HttpSession |
getSession()
|
javax.servlet.jsp.el.VariableResolver |
getVariableResolver()
|
void |
handlePageException(Exception e)
|
void |
handlePageException(Throwable t)
|
void |
include(String relativeUrlPath)
|
void |
include(String relativeUrlPath,
boolean flush)
|
void |
initialize(Servlet servlet,
ServletRequest request,
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityPageContext
public VelocityPageContext(org.apache.velocity.context.Context velocityContext,
Writer velocityWriter,
ViewContext viewContext)
- Constructor.
- Parameters:
velocityContext - The Velocity context.velocityWriter - The writer to be used when writing content.viewContext - The View context.
initialize
public void initialize(Servlet servlet,
ServletRequest request,
ServletResponse response,
String errorPageURL,
boolean needsSession,
int bufferSize,
boolean autoFlush)
throws IOException,
IllegalStateException,
IllegalArgumentException
- Specified by:
initialize in class PageContext
- Throws:
IOException
IllegalStateException
IllegalArgumentException
release
public void release()
- Specified by:
release in class PageContext
getSession
public HttpSession getSession()
- Specified by:
getSession in class PageContext
getPage
public Object getPage()
- Specified by:
getPage in class PageContext
getRequest
public ServletRequest getRequest()
- Specified by:
getRequest in class PageContext
getResponse
public ServletResponse getResponse()
- Specified by:
getResponse in class PageContext
getException
public Exception getException()
- Specified by:
getException in class PageContext
getServletConfig
public ServletConfig getServletConfig()
- Specified by:
getServletConfig in class PageContext
getServletContext
public ServletContext getServletContext()
- Specified by:
getServletContext in class PageContext
forward
public void forward(String relativeUrlPath)
throws ServletException,
IOException
- Specified by:
forward in class PageContext
- Throws:
ServletException
IOException
include
public void include(String relativeUrlPath)
throws ServletException,
IOException
- Specified by:
include in class PageContext
- Throws:
ServletException
IOException
include
public void include(String relativeUrlPath,
boolean flush)
throws ServletException,
IOException
- Specified by:
include in class PageContext
- Throws:
ServletException
IOException
handlePageException
public void handlePageException(Exception e)
throws ServletException,
IOException
- Specified by:
handlePageException in class PageContext
- Throws:
ServletException
IOException
handlePageException
public void handlePageException(Throwable t)
throws ServletException,
IOException
- Specified by:
handlePageException in class PageContext
- Throws:
ServletException
IOException
setAttribute
public void setAttribute(String name,
Object value)
- Specified by:
setAttribute in class JspContext
setAttribute
public void setAttribute(String name,
Object value,
int scope)
- Specified by:
setAttribute in class JspContext
getAttribute
public Object getAttribute(String name)
- Specified by:
getAttribute in class JspContext
getAttribute
public Object getAttribute(String name,
int scope)
- Specified by:
getAttribute in class JspContext
findAttribute
public Object findAttribute(String name)
- Specified by:
findAttribute in class JspContext
removeAttribute
public void removeAttribute(String name)
- Specified by:
removeAttribute in class JspContext
removeAttribute
public void removeAttribute(String name,
int scope)
- Specified by:
removeAttribute in class JspContext
getAttributesScope
public int getAttributesScope(String name)
- Specified by:
getAttributesScope in class JspContext
getAttributeNamesInScope
public Enumeration<String> getAttributeNamesInScope(int scope)
- Specified by:
getAttributeNamesInScope in class JspContext
getOut
public JspWriter getOut()
- Specified by:
getOut in class JspContext
getExpressionEvaluator
public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
- Specified by:
getExpressionEvaluator in class JspContext
getVariableResolver
public javax.servlet.jsp.el.VariableResolver getVariableResolver()
- Specified by:
getVariableResolver in class JspContext
getELContext
public javax.el.ELContext getELContext()
- Specified by:
getELContext in class JspContext
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.