Interface HttpBodyConverter
- All Known Implementing Classes:
JacksonBodyConverter,StringConverter
public interface HttpBodyConverter
An object mapper is used to serialize and deserialize a Java object to and from a String, byte[] or InputStream.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescription<T> booleancanRead(HttpBodyConverter.DeserializationContext context, Class<T> type) boolean<T> Tread(HttpBodyConverter.DeserializationContext context, Class<T> type) default booleansupportsMediaType(MediaType mediaType) Checks if thisHttpBodyConvertersupports the provided media type.byte[]
-
Method Details
-
canRead
-
read
-
canWrite
-
write
-
getSupportedMediaTypes
Collection<MediaType> getSupportedMediaTypes() -
supportsMediaType
Checks if thisHttpBodyConvertersupports the provided media type. Used for both reading and writing.- Parameters:
mediaType- to convert from or into- Returns:
trueif mediaType is null or is compatible, otherwisefalse
-