open class ContextExposingHttpServletRequest : HttpServletRequestWrapper
HttpServletRequest decorator that makes all Spring beans in a given WebApplicationContext accessible as request attributes, through lazy checking once an attribute gets accessed.
Author
Juergen Hoeller
Since
2.5
ContextExposingHttpServletRequest(originalRequest: HttpServletRequest, context: WebApplicationContext)ContextExposingHttpServletRequest(originalRequest: HttpServletRequest, context: WebApplicationContext, exposedContextBeanNames: MutableSet<String>)
Create a new ContextExposingHttpServletRequest for the given request. |
open fun getAttribute(name: String): Any |
|
fun getWebApplicationContext(): WebApplicationContext
Return the WebApplicationContext that this request runs in. |
|
open fun setAttribute(name: String, value: Any): Unit |