Example usage for Java org.springframework.mock.web MockPageContext fields, constructors, methods, implement or subclass
The text is from its open source code.
MockPageContext() Create new MockPageContext with a default MockServletContext , MockHttpServletRequest , MockHttpServletResponse , MockServletConfig . | |
MockPageContext(@Nullable ServletContext servletContext, @Nullable HttpServletRequest request, @Nullable HttpServletResponse response) Create new MockPageContext with a MockServletConfig. | |
MockPageContext(@Nullable ServletContext servletContext, @Nullable HttpServletRequest request) Create new MockPageContext with a MockHttpServletResponse, MockServletConfig. |
Object | getAttribute(String name, int scope) |
ServletRequest | getRequest() |
ServletResponse | getResponse() |
void | setAttribute(String name, @Nullable Object value) |