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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.converter.HttpMessageConvertergetSupportedMediaTypes
- 
Constructor Details- 
MultipartAwareFormHttpMessageConverterpublic MultipartAwareFormHttpMessageConverter()
 
- 
- 
Method Details- 
setCharsetSet the character set used for writing form data.- Parameters:
- charset- The charset.
 
- 
setMultipartFileReaderSpecify theMultipartFileReaderto use when readingMultipartFilecontent.- Parameters:
- multipartFileReader- The multipart file reader.
 
- 
getSupportedMediaTypes- Specified by:
- getSupportedMediaTypesin interface- HttpMessageConverter<MultiValueMap<String,- ?>> 
 
- 
canRead- Specified by:
- canReadin interface- HttpMessageConverter<MultiValueMap<String,- ?>> 
 
- 
canWrite- Specified by:
- canWritein interface- HttpMessageConverter<MultiValueMap<String,- ?>> 
 
- 
readpublic MultiValueMap<String,?> read(Class<? extends MultiValueMap<String, ?>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException- Specified by:
- readin interface- HttpMessageConverter<MultiValueMap<String,- ?>> 
- Throws:
- IOException
- HttpMessageNotReadableException
 
- 
writepublic void write(MultiValueMap<String, ?> map, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException- Specified by:
- writein interface- HttpMessageConverter<MultiValueMap<String,- ?>> 
- Throws:
- IOException
- HttpMessageNotWritableException
 
 
-