MockHttpServletRequestDsl

open class 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

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

Properties

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

Inheritors

MockMultipartHttpServletRequestDsl
Link copied to clipboard