public class FakeJspPageContext
extends javax.servlet.jsp.PageContext
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.ServletContext |
context
The context.
|
protected Exception |
exception
The exception.
|
protected javax.servlet.jsp.JspWriter |
out
The out.
|
protected javax.servlet.http.HttpServletRequest |
request
The request.
|
protected javax.servlet.http.HttpServletResponse |
response
The response.
|
protected Map<String,Object> |
values
The values.
|
| Constructor and Description |
|---|
FakeJspPageContext(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.jsp.JspWriter out)
Instantiates a new fake jsp page context
|
| Modifier and Type | Method and Description |
|---|---|
Object |
findAttribute(String name) |
void |
flushOut()
Flush out.
|
void |
forward(String url) |
Object |
getAttribute(String name) |
Object |
getAttribute(String name,
int scope) |
Enumeration |
getAttributeNamesInScope(int scope) |
int |
getAttributesScope(String name) |
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() |
protected Object |
getValue(String key)
Gets the value.
|
protected Enumeration |
getValueNames()
Gets the value names.
|
javax.servlet.jsp.el.VariableResolver |
getVariableResolver() |
void |
handlePageException(Exception e) |
void |
handlePageException(Throwable t) |
void |
include(String url) |
void |
include(String url,
boolean b) |
void |
initialize(javax.servlet.Servlet srv,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
String s1,
boolean b1,
int i1,
boolean b2) |
void |
release() |
void |
removeAttribute(String name) |
void |
removeAttribute(String name,
int scope) |
protected void |
removeValue(String key)
Removes the value.
|
void |
setAttribute(String name,
Object obj) |
void |
setAttribute(String name,
Object obj,
int scope) |
protected void |
setValue(String key,
Object value)
Sets the value.
|
protected Exception exception
protected javax.servlet.ServletContext context
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.jsp.JspWriter out
public FakeJspPageContext(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.jsp.JspWriter out)
context - The ServletContext to wraprequest - The HttpServletRequest instance to wrapresponse - The HttpServletResponse instance to wrapout - The JspWriter to wrappublic javax.servlet.ServletRequest getRequest()
getRequest in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletResponse getResponse()
getResponse in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletContext getServletContext()
getServletContext in class javax.servlet.jsp.PageContextpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.JspWriter getOut()
getOut in class javax.servlet.jsp.JspContextpublic javax.servlet.http.HttpSession getSession()
getSession in class javax.servlet.jsp.PageContextpublic Object findAttribute(String name)
findAttribute in class javax.servlet.jsp.JspContextpublic Object getAttribute(String name)
getAttribute in class javax.servlet.jsp.JspContextpublic Object getAttribute(String name, int scope)
getAttribute in class javax.servlet.jsp.JspContextpublic void setAttribute(String name, Object obj)
setAttribute in class javax.servlet.jsp.JspContextpublic void setAttribute(String name, Object obj, int scope)
setAttribute in class javax.servlet.jsp.JspContextpublic void removeAttribute(String name)
removeAttribute in class javax.servlet.jsp.JspContextpublic void removeAttribute(String name, int scope)
removeAttribute in class javax.servlet.jsp.JspContextpublic Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope in class javax.servlet.jsp.JspContextpublic int getAttributesScope(String name)
getAttributesScope in class javax.servlet.jsp.JspContextpublic void forward(String url) throws javax.servlet.ServletException, IOException
forward in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void include(String url) throws javax.servlet.ServletException, IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void include(String url, boolean b) throws javax.servlet.ServletException, IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletExceptionIOExceptionpublic void flushOut()
throws IOException
IOException - Signals that an I/O exception has occurred.public void release()
release in class javax.servlet.jsp.PageContextpublic javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
getExpressionEvaluator in class javax.servlet.jsp.JspContextpublic javax.servlet.jsp.el.VariableResolver getVariableResolver()
getVariableResolver in class javax.servlet.jsp.JspContextpublic void handlePageException(Throwable t)
handlePageException in class javax.servlet.jsp.PageContextpublic void handlePageException(Exception e)
handlePageException in class javax.servlet.jsp.PageContextpublic Exception getException()
getException in class javax.servlet.jsp.PageContextpublic Object getPage()
getPage in class javax.servlet.jsp.PageContextpublic javax.el.ELContext getELContext()
getELContext in class javax.servlet.jsp.JspContextpublic void initialize(javax.servlet.Servlet srv,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
String s1,
boolean b1,
int i1,
boolean b2)
initialize in class javax.servlet.jsp.PageContextprotected Object getValue(String key)
key - the keyprotected void setValue(String key, Object value)
key - the keyvalue - the valueprotected void removeValue(String key)
key - the keyprotected Enumeration getValueNames()
Copyright © 2005–2016 Alfresco Software. All rights reserved.