|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.springframework.extensions.surf.util.FakeJspPageContext
public class FakeJspPageContext
Fake Jsp PageContext implementation which wraps predescribed HTTP objects.
| Field Summary | |
|---|---|
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. |
| 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 |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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)
|
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. |
| Methods inherited from class javax.servlet.jsp.PageContext |
|---|
getErrorData, pushBody |
| Methods inherited from class javax.servlet.jsp.JspContext |
|---|
getELContext, popBody, pushBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Exception exception
protected Map<String,Object> values
protected javax.servlet.ServletContext context
protected javax.servlet.http.HttpServletRequest request
protected javax.servlet.http.HttpServletResponse response
protected javax.servlet.jsp.JspWriter out
| Constructor Detail |
|---|
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 wrap| Method Detail |
|---|
public 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.JspContext
public Object getAttribute(String name,
int scope)
getAttribute in class javax.servlet.jsp.JspContext
public void setAttribute(String name,
Object obj)
setAttribute in class javax.servlet.jsp.JspContext
public 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.JspContext
public 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.JspContext
public void forward(String url)
throws javax.servlet.ServletException,
IOException
forward in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
IOException
public void include(String url)
throws javax.servlet.ServletException,
IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
IOException
public void include(String url,
boolean b)
throws javax.servlet.ServletException,
IOException
include in class javax.servlet.jsp.PageContextjavax.servlet.ServletException
IOException
public 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.PageContext
public 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 key
protected void setValue(String key,
Object value)
key - the keyvalue - the valueprotected void removeValue(String key)
key - the keyprotected Enumeration getValueNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||