|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.PageContext | +--org.chwf.servlet.mock.MockPageContext
Mock page context.
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 | |
MockPageContext()
|
Method Summary | |
java.lang.Object |
findAttribute(java.lang.String name)
Find attribute by searching all scopes. |
void |
forward(java.lang.String uri)
Unsupported. |
java.lang.Object |
getAttribute(java.lang.String name)
Get attribute. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Get attribute. |
java.util.Enumeration |
getAttributeNamesInScope(int scope)
Unsupported. |
int |
getAttributesScope(java.lang.String name)
Unsupported. |
java.lang.Exception |
getException()
Unsupported. |
javax.servlet.jsp.JspWriter |
getOut()
MockJspWriter |
java.lang.Object |
getPage()
Unsupported. |
javax.servlet.ServletRequest |
getRequest()
MockServletRequest. |
javax.servlet.ServletResponse |
getResponse()
MockServletRequest |
javax.servlet.ServletConfig |
getServletConfig()
MockServletConfig |
javax.servlet.ServletContext |
getServletContext()
MockServletContext |
javax.servlet.http.HttpSession |
getSession()
MockSession. |
void |
handlePageException(java.lang.Exception ex)
Unsupported. |
void |
handlePageException(java.lang.Throwable ex)
Unsupported. |
void |
include(java.lang.String uri)
Unsupported. |
void |
initialize(javax.servlet.Servlet arg0,
javax.servlet.ServletRequest arg1,
javax.servlet.ServletResponse arg2,
java.lang.String arg3,
boolean arg4,
int arg5,
boolean arg6)
Unsupported. |
void |
release()
Unsupported. |
void |
removeAttribute(java.lang.String name)
Remove attribute. |
void |
removeAttribute(java.lang.String name,
int scope)
Remove attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
Set attribute. |
Methods inherited from class javax.servlet.jsp.PageContext |
popBody, pushBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MockPageContext()
Method Detail |
public void initialize(javax.servlet.Servlet arg0, javax.servlet.ServletRequest arg1, javax.servlet.ServletResponse arg2, java.lang.String arg3, boolean arg4, int arg5, boolean arg6) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
initialize
in class javax.servlet.jsp.PageContext
arg0
- argarg1
- argarg2
- argarg3
- argarg4
- argarg5
- argarg6
- argjava.io.IOException
- for errorsjava.lang.IllegalStateException
- for errorsjava.lang.IllegalArgumentException
- for errorspublic void release()
release
in class javax.servlet.jsp.PageContext
PageContext.release()
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in class javax.servlet.jsp.PageContext
name
- namevalue
- valuePageContext.setAttribute(String, Object)
public void setAttribute(java.lang.String name, java.lang.Object value, int scope)
setAttribute
in class javax.servlet.jsp.PageContext
name
- namevalue
- valuescope
- scopePageContext.setAttribute(String, Object, int)
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in class javax.servlet.jsp.PageContext
name
- namePageContext.getAttribute(String)
public java.lang.Object getAttribute(java.lang.String name, int scope)
getAttribute
in class javax.servlet.jsp.PageContext
name
- namescope
- scopePageContext.getAttribute(String, int)
public java.lang.Object findAttribute(java.lang.String name)
findAttribute
in class javax.servlet.jsp.PageContext
name
- namePageContext.findAttribute(String)
public void removeAttribute(java.lang.String name)
removeAttribute
in class javax.servlet.jsp.PageContext
name
- namePageContext.removeAttribute(String)
public void removeAttribute(java.lang.String name, int scope)
removeAttribute
in class javax.servlet.jsp.PageContext
name
- namescope
- scopePageContext.removeAttribute(String, int)
public int getAttributesScope(java.lang.String name)
getAttributesScope
in class javax.servlet.jsp.PageContext
name
- namePageContext.getAttributesScope(String)
public java.util.Enumeration getAttributeNamesInScope(int scope)
getAttributeNamesInScope
in class javax.servlet.jsp.PageContext
scope
- scopePageContext.getAttributeNamesInScope(int)
public javax.servlet.jsp.JspWriter getOut()
getOut
in class javax.servlet.jsp.PageContext
PageContext.getOut()
public javax.servlet.http.HttpSession getSession()
getSession
in class javax.servlet.jsp.PageContext
PageContext.getSession()
public java.lang.Object getPage()
getPage
in class javax.servlet.jsp.PageContext
PageContext.getPage()
public javax.servlet.ServletRequest getRequest()
getRequest
in class javax.servlet.jsp.PageContext
PageContext.getRequest()
public javax.servlet.ServletResponse getResponse()
getResponse
in class javax.servlet.jsp.PageContext
PageContext.getResponse()
public java.lang.Exception getException()
getException
in class javax.servlet.jsp.PageContext
PageContext.getException()
public javax.servlet.ServletConfig getServletConfig()
getServletConfig
in class javax.servlet.jsp.PageContext
PageContext.getServletConfig()
public javax.servlet.ServletContext getServletContext()
getServletContext
in class javax.servlet.jsp.PageContext
PageContext.getServletContext()
public void forward(java.lang.String uri) throws javax.servlet.ServletException, java.io.IOException
forward
in class javax.servlet.jsp.PageContext
uri
- PageContext.forward(String)
public void include(java.lang.String uri) throws javax.servlet.ServletException, java.io.IOException
include
in class javax.servlet.jsp.PageContext
uri
- PageContext.include(String)
public void handlePageException(java.lang.Exception ex) throws javax.servlet.ServletException, java.io.IOException
handlePageException
in class javax.servlet.jsp.PageContext
ex
- javax.servlet.ServletException
- java.io.IOException
- PageContext
public void handlePageException(java.lang.Throwable ex) throws javax.servlet.ServletException, java.io.IOException
ex
- javax.servlet.ServletException
- java.io.IOException
- PageContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |