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 tools.jackson.databind.json.JsonMapper.Builder
configureJsonMapper
(tools.jackson.databind.json.JsonMapper.Builder builder) Configure anJsonMapper.Builder
and register custom serializers and deserializers for the supported media types.default @Nullable tools.jackson.databind.JacksonModule
Optionally return the JacksonModule
to be used to customize the serialization of representation models.List<org.springframework.http.MediaType>
AllMediaType
s this hypermedia can handle.default Class<?>
Return the type that this hypermedia type is represented by.
-
Method Details
-
getMediaTypes
List<org.springframework.http.MediaType> 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
-
configureJsonMapper
default tools.jackson.databind.json.JsonMapper.Builder configureJsonMapper(tools.jackson.databind.json.JsonMapper.Builder builder) Configure anJsonMapper.Builder
and register custom serializers and deserializers for the supported media types. If all you want to do is register a JacksonModule
, prefer implementinggetJacksonModule()
.- Parameters:
builder
- will never be null.- Returns:
- must not be null.
- See Also:
-
getJacksonModule
default @Nullable tools.jackson.databind.JacksonModule getJacksonModule()Optionally return the JacksonModule
to be used to customize the serialization of representation models. Override this if there's nothing but theJacksonModule
to be registered to setup theJsonMapper
. For more advanced needs, seeconfigureJsonMapper(Builder)
.- Returns:
- See Also:
-