MockPageContext()
Create new MockPageContext with a default MockServletContext, MockHttpServletRequest, MockHttpServletResponse, MockServletConfig.
MockPageContext(@Nullable servletContext: ServletContext)
Create new MockPageContext with a default MockHttpServletRequest, MockHttpServletResponse, MockServletConfig.
servletContext
- the ServletContext that the JSP page runs in (only necessary when actually accessing the ServletContext)
MockPageContext(@Nullable servletContext: ServletContext, @Nullable request: HttpServletRequest)
Create new MockPageContext with a MockHttpServletResponse, MockServletConfig.
servletContext
- the ServletContext that the JSP page runs in
request
- the current HttpServletRequest (only necessary when actually accessing the request)
MockPageContext(@Nullable servletContext: ServletContext, @Nullable request: HttpServletRequest, @Nullable response: HttpServletResponse)
Create new MockPageContext with a MockServletConfig.
servletContext
- the ServletContext that the JSP page runs in
request
- the current HttpServletRequest
response
- the current HttpServletResponse (only necessary when actually writing to the response)
MockPageContext(@Nullable servletContext: ServletContext, @Nullable request: HttpServletRequest, @Nullable response: HttpServletResponse, @Nullable servletConfig: ServletConfig)
Create new MockServletConfig.
servletContext
- the ServletContext that the JSP page runs in
request
- the current HttpServletRequest
response
- the current HttpServletResponse
servletConfig
- the ServletConfig (hardly ever accessed from within a tag)