public class VoidResponseHttpMessageConverter extends Object implements org.springframework.http.converter.HttpMessageConverter<Void>
HttpMessageConverter that gracefully handles ResponseEntity<Void> responses| Constructor and Description |
|---|
VoidResponseHttpMessageConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
boolean |
canWrite(Class<?> clazz,
org.springframework.http.MediaType mediaType) |
List<org.springframework.http.MediaType> |
getSupportedMediaTypes() |
Void |
read(Class<? extends Void> clazz,
org.springframework.http.HttpInputMessage inputMessage) |
void |
write(Void t,
org.springframework.http.MediaType contentType,
org.springframework.http.HttpOutputMessage outputMessage) |
public boolean canRead(Class<?> clazz, org.springframework.http.MediaType mediaType)
canRead in interface org.springframework.http.converter.HttpMessageConverter<Void>public boolean canWrite(Class<?> clazz, org.springframework.http.MediaType mediaType)
canWrite in interface org.springframework.http.converter.HttpMessageConverter<Void>public List<org.springframework.http.MediaType> getSupportedMediaTypes()
getSupportedMediaTypes in interface org.springframework.http.converter.HttpMessageConverter<Void>public Void read(Class<? extends Void> clazz, org.springframework.http.HttpInputMessage inputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotReadableException
read in interface org.springframework.http.converter.HttpMessageConverter<Void>IOExceptionorg.springframework.http.converter.HttpMessageNotReadableExceptionpublic void write(Void t, org.springframework.http.MediaType contentType, org.springframework.http.HttpOutputMessage outputMessage) throws IOException, org.springframework.http.converter.HttpMessageNotWritableException
write in interface org.springframework.http.converter.HttpMessageConverter<Void>IOExceptionorg.springframework.http.converter.HttpMessageNotWritableExceptionCopyright © 2011–2022 aiticon GmbH. All rights reserved.