private static class ExtensionFormHttpMessageConverter.MultipartHttpOutputMessage extends Object implements org.springframework.http.HttpOutputMessage
| 限定符和类型 | 字段和说明 |
|---|---|
private Charset |
charset
The Charset.
|
private org.springframework.http.HttpHeaders |
headers
The Headers.
|
private boolean |
headersWritten
The Headers written.
|
private OutputStream |
outputStream
The Output stream.
|
| 构造器和说明 |
|---|
MultipartHttpOutputMessage(OutputStream outputStream,
Charset charset)
Instantiates a new Multipart http output message.
|
| 限定符和类型 | 方法和说明 |
|---|---|
OutputStream |
getBody() |
private byte[] |
getBytes(String name)
Get bytes byte [ ].
|
org.springframework.http.HttpHeaders |
getHeaders() |
private void |
writeHeaders()
Write headers.
|
private final OutputStream outputStream
private final Charset charset
private final org.springframework.http.HttpHeaders headers
private boolean headersWritten
public MultipartHttpOutputMessage(OutputStream outputStream, Charset charset)
outputStream - the output streamcharset - the charsetpublic org.springframework.http.HttpHeaders getHeaders()
getHeaders 在接口中 org.springframework.http.HttpMessagepublic OutputStream getBody() throws IOException
getBody 在接口中 org.springframework.http.HttpOutputMessageIOExceptionprivate void writeHeaders()
throws IOException
IOException - the io exceptionprivate byte[] getBytes(String name)
name - the nameCopyright © 2021. All rights reserved.