open class MockHttpServletRequestDsl
Provide a MockHttpServletRequestBuilder Kotlin DSL in order to be able to write idiomatic Kotlin code.
See Also
Author
Sebastien Deleuze
Since
5.2
accept |
var accept: MediaType? |
characterEncoding |
var characterEncoding: String? |
content |
var content: Any? |
contentType |
var contentType: MediaType? |
contextPath |
var contextPath: String? |
flashAttrs |
var flashAttrs: Map<String, Any>? |
params |
var params: MultiValueMap<String, String>? |
pathInfo |
var pathInfo: String? |
principal |
var principal: Principal? |
secure |
var secure: Boolean? |
servletPath |
var servletPath: String? |
session |
var session: MockHttpSession? |
sessionAttrs |
var sessionAttrs: Map<String, Any>? |
accept |
fun accept(vararg mediaTypes: MediaType): Unit |
cookie |
fun cookie(vararg cookies: Cookie): Unit |
flashAttr |
fun flashAttr(name: String, value: Any): Unit |
header |
fun header(name: String, vararg values: Any): Unit |
headers |
fun headers(headers: HttpHeaders.() -> Unit): Unit |
locale |
fun locale(vararg locales: Locale): Unit |
merge |
fun merge(parent: MockHttpServletRequestBuilder?): Unit |
param |
fun param(name: String, vararg values: String): Unit |
requestAttr |
fun requestAttr(name: String, value: Any): Unit |
sessionAttr |
fun sessionAttr(name: String, value: Any): Unit |
with |
fun with(processor: RequestPostProcessor): Unit |
MockMultipartHttpServletRequestDsl |
Provide a MockMultipartHttpServletRequestBuilder Kotlin DSL in order to be able to write idiomatic Kotlin code. class MockMultipartHttpServletRequestDsl : MockHttpServletRequestDsl |