Class JsonMediaTypeCodec

All Implemented Interfaces:
MediaTypeCodec
Direct Known Subclasses:
JsonStreamMediaTypeCodec

Deprecated, for removal: This API element is subject to removal in a future version.
Replaced with message body writers / readers API
A MediaTypeCodec for JSON and Jackson.

Note: will be replaced by JsonMediaTypeCodec in the future, but that class is currently experimental.

Since:
1.0.0
Author:
Graeme Rocher
  • Field Details

    • CONFIGURATION_QUALIFIER

      public static final String CONFIGURATION_QUALIFIER
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • JsonMediaTypeCodec

      public JsonMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      objectMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
    • JsonMediaTypeCodec

      @Inject public JsonMediaTypeCodec(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      objectMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
  • Method Details