spring-framework / org.springframework.web.multipart.support / RequestPartServletServerHttpRequest

RequestPartServletServerHttpRequest

open class RequestPartServletServerHttpRequest : ServletServerHttpRequest

ServerHttpRequest implementation that accesses one part of a multipart request. If using MultipartResolver configuration the part is accessed through a MultipartFile. Or if using Servlet 3.0 multipart processing the part is accessed through ServletRequest.getPart.

Author
Rossen Stoyanchev

Author
Juergen Hoeller

Since
3.1

Constructors

<init>

RequestPartServletServerHttpRequest(request: HttpServletRequest, partName: String)

Create a new RequestPartServletServerHttpRequest instance.

Functions

getBody

open fun getBody(): InputStream

getHeaders

open fun getHeaders(): HttpHeaders

Inherited Functions

getAsyncRequestControl

open fun getAsyncRequestControl(response: ServerHttpResponse): ServerHttpAsyncRequestControl

getLocalAddress

open fun getLocalAddress(): InetSocketAddress

getMethodValue

open fun getMethodValue(): String

getPrincipal

open fun getPrincipal(): Principal

getRemoteAddress

open fun getRemoteAddress(): InetSocketAddress

getServletRequest

open fun getServletRequest(): HttpServletRequest

Returns the HttpServletRequest this object is based on.

getURI

open fun getURI(): URI