open class ContentCachingRequestWrapper : HttpServletRequestWrapper
javax.servlet.http.HttpServletRequest wrapper that caches all content read from the input stream and reader, and allows this content to be retrieved via a byte array
.
Used e.g. by org.springframework.web.filter.AbstractRequestLoggingFilter. Note: As of Spring Framework 5.0, this wrapper is built on the Servlet 3.1 API.
Author
Juergen Hoeller
Author
Brian Clozel
Since
4.1.3
See Also
ContentCachingResponseWrapper
ContentCachingRequestWrapper(request: HttpServletRequest) ContentCachingRequestWrapper(request: HttpServletRequest, contentCacheLimit: Int)
Create a new ContentCachingRequestWrapper for the given servlet request. |
open fun getCharacterEncoding(): String |
|
open fun getContentAsByteArray(): ByteArray
Return the cached request content as a byte array. The returned array will never be larger than the content cache limit. |
|
open fun getInputStream(): ServletInputStream |
|
open fun getParameter(name: String): String |
|
open fun getParameterMap(): MutableMap<String, Array<String>> |
|
open fun getParameterNames(): Enumeration<String> |
|
open fun getParameterValues(name: String): Array<String> |
|
open fun getReader(): BufferedReader |