open class MockPageContext : PageContext
Mock implementation of the javax.servlet.jsp.PageContext interface. Only necessary for testing applications when testing custom JSP tags.
Note: Expects initialization via the constructor rather than via the PageContext.initialize
method. Does not support writing to a JspWriter, request dispatching, or handlePageException
calls.
Author
Juergen Hoeller
Since
1.0.2
MockPageContext()
Create new MockPageContext with a default MockServletContext, MockHttpServletRequest, MockHttpServletResponse, MockServletConfig. MockPageContext(servletContext: ServletContext)
Create new MockPageContext with a default MockHttpServletRequest, MockHttpServletResponse, MockServletConfig. MockPageContext(servletContext: ServletContext, request: HttpServletRequest)
Create new MockPageContext with a MockHttpServletResponse, MockServletConfig. MockPageContext(servletContext: ServletContext, request: HttpServletRequest, response: HttpServletResponse)
Create new MockPageContext with a MockServletConfig. MockPageContext(servletContext: ServletContext, request: HttpServletRequest, response: HttpServletResponse, servletConfig: ServletConfig)
Create new MockServletConfig. |
open fun findAttribute(name: String): Any |
|
open fun forward(path: String): Unit |
|
open fun getAttribute(name: String): Any open fun getAttribute(name: String, scope: Int): Any |
|
open fun getAttributeNames(): Enumeration<String> |
|
open fun getAttributeNamesInScope(scope: Int): Enumeration<String> |
|
open fun getAttributesScope(name: String): Int |
|
open fun getContentAsByteArray(): ByteArray |
|
open fun getContentAsString(): String |
|
open fun getELContext(): ELContext |
|
open fun getException(): Exception |
|
open fun |
|
open fun getOut(): JspWriter |
|
open fun getPage(): Any |
|
open fun getRequest(): ServletRequest |
|
open fun getResponse(): ServletResponse |
|
open fun getServletConfig(): ServletConfig |
|
open fun getServletContext(): ServletContext |
|
open fun getSession(): HttpSession |
|
open fun |
|
open fun handlePageException(ex: Exception): Unit open fun handlePageException(ex: Throwable): Unit |
|
open fun include(path: String): Unit open fun include(path: String, flush: Boolean): Unit |
|
open fun initialize(servlet: Servlet, request: ServletRequest, response: ServletResponse, errorPageURL: String, needsSession: Boolean, bufferSize: Int, autoFlush: Boolean): Unit |
|
open fun release(): Unit |
|
open fun removeAttribute(name: String): Unit open fun removeAttribute(name: String, scope: Int): Unit |
|
open fun setAttribute(name: String, value: Any): Unit open fun setAttribute(name: String, value: Any, scope: Int): Unit |