Class MockHttpServletRequestBuilder
java.lang.Object
org.springframework.test.web.servlet.request.AbstractMockHttpServletRequestBuilder<MockHttpServletRequestBuilder>
org.springframework.test.web.servlet.request.MockHttpServletRequestBuilder
- All Implemented Interfaces:
Mergeable
,ConfigurableSmartRequestBuilder<MockHttpServletRequestBuilder>
,RequestBuilder
,SmartRequestBuilder
public class MockHttpServletRequestBuilder
extends AbstractMockHttpServletRequestBuilder<MockHttpServletRequestBuilder>
Default builder for
MockHttpServletRequest
required as input to
perform requests in MockMvc
.
Application tests will typically access this builder through the static
factory methods in MockMvcRequestBuilders
.
This class is not open for extension. To apply custom initialization to
the created MockHttpServletRequest
, please use the
AbstractMockHttpServletRequestBuilder.with(RequestPostProcessor)
extension point.
- Since:
- 3.2
- Author:
- Rossen Stoyanchev, Juergen Hoeller, Arjen Poutsma, Sam Brannen, Kamill Sokol
-
Method Summary
Methods inherited from class org.springframework.test.web.servlet.request.AbstractMockHttpServletRequestBuilder
accept, accept, buildRequest, characterEncoding, characterEncoding, content, content, contentType, contentType, contextPath, cookie, createServletRequest, flashAttr, flashAttrs, formField, formFields, header, headers, isMergeEnabled, locale, locale, merge, param, params, pathInfo, postProcessRequest, principal, queryParam, queryParams, remoteAddress, requestAttr, secure, self, servletPath, session, sessionAttr, sessionAttrs, uri, uri, with