Interface HypermediaMappingInformation
- All Known Implementing Classes:
HalMediaTypeConfiguration
public interface HypermediaMappingInformation
Interface for registering custom hypermedia handlers.
- Author:
- Greg Turnquist, Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.fasterxml.jackson.databind.ObjectMapper
configureObjectMapper
(com.fasterxml.jackson.databind.ObjectMapper mapper) Configure anObjectMapper
and register custom serializers and deserializers for the supported media types.default com.fasterxml.jackson.databind.Module
Optionally return the JacksonModule
to be used to customize the serialization of representation models.AllMediaType
s this hypermedia can handle.default Class<?>
Return the type that this hypermedia type is represented by.
-
Method Details
-
getMediaTypes
AllMediaType
s this hypermedia can handle.- Returns:
-
getRootType
Return the type that this hypermedia type is represented by. Default implementation returnsRepresentationModel
as it's the base class most media type serializations work with.- Returns:
- the type that this hypermedia type is represented by.
- Since:
- 1.1
-
configureObjectMapper
default com.fasterxml.jackson.databind.ObjectMapper configureObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Configure anObjectMapper
and register custom serializers and deserializers for the supported media types. If all you want to do is register a JacksonModule
, prefer implementinggetJacksonModule()
.- Returns:
- See Also:
-
getJacksonModule
Optionally return the JacksonModule
to be used to customize the serialization of representation models. Override this if there's nothing but the module to be done to setup theObjectMapper
. For more advanced needs, seeconfigureObjectMapper(ObjectMapper)
.- Returns:
- See Also:
-