MockHttpServletRequestDsl

Provide a MockHttpServletRequestBuilder Kotlin DSL in order to be able to write idiomatic Kotlin code.

Author

Sebastien Deleuze

Since

5.2

See also

Functions

Link copied to clipboard
fun accept(vararg mediaTypes: MediaType)
Link copied to clipboard
fun cookie(vararg cookies: Cookie)
Link copied to clipboard
fun flashAttr(name: String, value: Any)
Link copied to clipboard
fun header(name: String, vararg values: Any)
Link copied to clipboard
fun headers(headers: HttpHeaders.() -> Unit)
Link copied to clipboard
fun locale(vararg locales: Locale)
Link copied to clipboard
Link copied to clipboard
fun param(name: String, vararg values: String)
Link copied to clipboard
fun requestAttr(name: String, value: Any)
Link copied to clipboard
fun sessionAttr(name: String, value: Any)
Link copied to clipboard
fun with(processor: RequestPostProcessor)

Properties

Link copied to clipboard
var accept: MediaType? = null
Link copied to clipboard
Link copied to clipboard
var content: Any? = null
Link copied to clipboard
var contentType: MediaType? = null
Link copied to clipboard
var contextPath: String? = null
Link copied to clipboard
var flashAttrs: Map<String, Any>? = null
Link copied to clipboard
Link copied to clipboard
var pathInfo: String? = null
Link copied to clipboard
var principal: Principal? = null
Link copied to clipboard
var secure: Boolean? = null
Link copied to clipboard
var servletPath: String? = null
Link copied to clipboard
Link copied to clipboard
var sessionAttrs: Map<String, Any>? = null

Inheritors

Link copied to clipboard