/** * Constructor with explicit list of writers for serializing parts and a * writer for plain form data to fall back when no media type is specified * and the actual map consists of String values only. * @param partWriters the writers for serializing parts * @param formWriter the fallback writer for form data, {@code null} by default */ public MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters, @Nullable HttpMessageWriter<MultiValueMap<String, String>> formWriter) { this.partWriters = partWriters; this.formWriter = formWriter; this.supportedMediaTypes = initMediaTypes(formWriter); }
/** * Constructor with explicit list of writers for serializing parts and a * writer for plain form data to fall back when no media type is specified * and the actual map consists of String values only. * @param partWriters the writers for serializing parts * @param formWriter the fallback writer for form data, {@code null} by default */ public MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters, @Nullable HttpMessageWriter<MultiValueMap<String, String>> formWriter) { this.partWriters = partWriters; this.formWriter = formWriter; this.supportedMediaTypes = initMediaTypes(formWriter); }
/** * Constructor with explicit list of writers for serializing parts and a * writer for plain form data to fall back when no media type is specified * and the actual map consists of String values only. * @param partWriters the writers for serializing parts * @param formWriter the fallback writer for form data, {@code null} by default */ public MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters, @Nullable HttpMessageWriter<MultiValueMap<String, String>> formWriter) { this.partWriters = partWriters; this.formWriter = formWriter; this.supportedMediaTypes = initMediaTypes(formWriter); }
/** * Constructor with explicit list of writers for serializing parts and a * writer for plain form data to fall back when no media type is specified * and the actual map consists of String values only. * @param partWriters the writers for serializing parts * @param formWriter the fallback writer for form data, {@code null} by default */ public MultipartHttpMessageWriter(List<HttpMessageWriter<?>> partWriters, @Nullable HttpMessageWriter<MultiValueMap<String, String>> formWriter) { this.partWriters = partWriters; this.formWriter = formWriter; this.supportedMediaTypes = initMediaTypes(formWriter); }