Class MultipartAwareFormHttpMessageConverter
java.lang.Object
org.springframework.integration.http.converter.MultipartAwareFormHttpMessageConverter
- All Implemented Interfaces:
 HttpMessageConverter<MultiValueMap<String,?>> 
public class MultipartAwareFormHttpMessageConverter
extends Object
implements HttpMessageConverter<MultiValueMap<String,?>> 
An 
HttpMessageConverter implementation that delegates to an instance of
 AllEncompassingFormHttpMessageConverter while adding the capability to read
 multipart/form-data content in an HTTP request.- Since:
 - 2.0
 - Author:
 - Mark Fisher, Gary Russell, Artem Bilan
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanread(Class<? extends MultiValueMap<String, ?>> clazz, HttpInputMessage inputMessage) voidsetCharset(Charset charset) Set the character set used for writing form data.voidsetMultipartFileReader(MultipartFileReader<?> multipartFileReader) Specify theMultipartFileReaderto use when readingMultipartFilecontent.voidwrite(MultiValueMap<String, ?> map, MediaType contentType, HttpOutputMessage outputMessage) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConverter
getSupportedMediaTypes 
- 
Constructor Details
- 
MultipartAwareFormHttpMessageConverter
public MultipartAwareFormHttpMessageConverter() 
 - 
 - 
Method Details
- 
setCharset
Set the character set used for writing form data.- Parameters:
 charset- The charset.
 - 
setMultipartFileReader
Specify theMultipartFileReaderto use when readingMultipartFilecontent.- Parameters:
 multipartFileReader- The multipart file reader.
 - 
getSupportedMediaTypes
- Specified by:
 getSupportedMediaTypesin interfaceHttpMessageConverter<MultiValueMap<String,?>> 
 - 
canRead
- Specified by:
 canReadin interfaceHttpMessageConverter<MultiValueMap<String,?>> 
 - 
canWrite
- Specified by:
 canWritein interfaceHttpMessageConverter<MultiValueMap<String,?>> 
 - 
read
public MultiValueMap<String,?> read(Class<? extends MultiValueMap<String, ?>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException- Specified by:
 readin interfaceHttpMessageConverter<MultiValueMap<String,?>> - Throws:
 IOExceptionHttpMessageNotReadableException
 - 
write
public void write(MultiValueMap<String, ?> map, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException- Specified by:
 writein interfaceHttpMessageConverter<MultiValueMap<String,?>> - Throws:
 IOExceptionHttpMessageNotWritableException
 
 -