类 ExtensionFormHttpMessageConverter.MultipartHttpOutputMessage

  • 所有已实现的接口:
    org.springframework.http.HttpMessage, org.springframework.http.HttpOutputMessage
    封闭类:
    ExtensionFormHttpMessageConverter

    private static class ExtensionFormHttpMessageConverter.MultipartHttpOutputMessage
    extends Object
    implements org.springframework.http.HttpOutputMessage
    The type Multipart http output message.
    • 字段详细资料

      • outputStream

        private final OutputStream outputStream
        The Output stream.
      • charset

        private final Charset charset
        The Charset.
      • headers

        private final org.springframework.http.HttpHeaders headers
        The Headers.
      • headersWritten

        private boolean headersWritten
        The Headers written.
    • 构造器详细资料

      • MultipartHttpOutputMessage

        public MultipartHttpOutputMessage​(OutputStream outputStream,
                                          Charset charset)
        Instantiates a new Multipart http output message.
        参数:
        outputStream - the output stream
        charset - the charset
    • 方法详细资料

      • getHeaders

        public org.springframework.http.HttpHeaders getHeaders()
        指定者:
        getHeaders 在接口中 org.springframework.http.HttpMessage
      • writeHeaders

        private void writeHeaders()
                           throws IOException
        Write headers.
        抛出:
        IOException - the io exception
      • getBytes

        private byte[] getBytes​(String name)
        Get bytes byte [ ].
        参数:
        name - the name
        返回:
        the byte [ ]