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 multipart processing
the part is accessed through ServletRequest.getPart.
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders | |
| private final MultipartHttpServletRequest | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | RequestPartServletServerHttpRequest(HttpServletRequest
the current servlet request request, String the name of the part to adapt to the requestPartName)ServerHttpRequest contractCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| private Charset | |
| public InputStream | getBody()
Overrides org. Implements org. Return the body of the message as an input stream. |
| public HttpHeaders | getHeaders()
Overrides org. Implements org. Return the headers of this message. |
| private Part |
| multipartHeaders | back to summary |
|---|---|
| private final HttpHeaders multipartHeaders | |
| multipartRequest | back to summary |
|---|---|
| private final MultipartHttpServletRequest multipartRequest | |
| requestPartName | back to summary |
|---|---|
| private final String requestPartName | |
| RequestPartServletServerHttpRequest | back to summary |
|---|---|
| public RequestPartServletServerHttpRequest(HttpServletRequest request, String requestPartName) throws MissingServletRequestPartException Create a new
| |
| determineCharset | back to summary |
|---|---|
| private Charset determineCharset() | |
| getBody | back to summary |
|---|---|
| public InputStream getBody() throws IOException Overrides org. Implements org. Doc from org. Return the body of the message as an input stream.
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Overrides org. Implements org. Doc from org. Return the headers of this message.
| |
| retrieveServletPart | back to summary |
|---|---|
private Part retrieveServletPart()
| |