Class MapperMediaTypeCodec

java.lang.Object
io.micronaut.json.codec.MapperMediaTypeCodec
All Implemented Interfaces:
MediaTypeCodec
Direct Known Subclasses:
JacksonMediaTypeCodec, JsonMediaTypeCodec

public abstract class MapperMediaTypeCodec extends Object implements MediaTypeCodec
A MediaTypeCodec for JsonMapper based implementations.
Since:
1.3.0
Author:
Graeme Rocher, svishnyakov
  • Field Details

  • Constructor Details

    • MapperMediaTypeCodec

      public MapperMediaTypeCodec(BeanProvider<JsonMapper> mapperProvider, ApplicationConfiguration applicationConfiguration, CodecConfiguration codecConfiguration, MediaType mediaType)
      Parameters:
      mapperProvider - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
      mediaType - Client request/response media type
    • MapperMediaTypeCodec

      public MapperMediaTypeCodec(BeanProvider<JsonMapper> mapperProvider, ApplicationConfiguration applicationConfiguration, CodecConfiguration codecConfiguration, MediaType mediaType, @Nullable @Nullable List<MediaType> additionalTypes)
      Parameters:
      mapperProvider - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
      mediaType - Client request/response media type
      additionalTypes - Additional Media Types
    • MapperMediaTypeCodec

      public MapperMediaTypeCodec(JsonMapper mapper, ApplicationConfiguration applicationConfiguration, CodecConfiguration codecConfiguration, MediaType mediaType)
      Parameters:
      mapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
      mediaType - Client request/response media type
  • Method Details