public class FormMapHttpMessageConverter extends Object implements HttpMessageConverter<Map<String,String>>
MultiValueMap
.
Created primarily for use by OAuth2Template
to handle cases where access token is returned as form-encoded data.Constructor and Description |
---|
FormMapHttpMessageConverter() |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(Class<?> clazz,
MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
MediaType mediaType) |
List<MediaType> |
getSupportedMediaTypes() |
Map<String,String> |
read(Class<? extends Map<String,String>> clazz,
HttpInputMessage inputMessage) |
void |
write(Map<String,String> t,
MediaType contentType,
HttpOutputMessage outputMessage) |
public boolean canRead(Class<?> clazz, MediaType mediaType)
canRead
in interface HttpMessageConverter<Map<String,String>>
public boolean canWrite(Class<?> clazz, MediaType mediaType)
canWrite
in interface HttpMessageConverter<Map<String,String>>
public List<MediaType> getSupportedMediaTypes()
getSupportedMediaTypes
in interface HttpMessageConverter<Map<String,String>>
public Map<String,String> read(Class<? extends Map<String,String>> clazz, HttpInputMessage inputMessage) throws IOException, HttpMessageNotReadableException
read
in interface HttpMessageConverter<Map<String,String>>
IOException
HttpMessageNotReadableException
public void write(Map<String,String> t, MediaType contentType, HttpOutputMessage outputMessage) throws IOException, HttpMessageNotWritableException
write
in interface HttpMessageConverter<Map<String,String>>
IOException
HttpMessageNotWritableException