Class JsonStreamMediaTypeCodec

All Implemented Interfaces:
MediaTypeCodec

A codec for MediaType.APPLICATION_JSON_STREAM. Note: will be replaced by JsonStreamMediaTypeCodec in the future, but that class is currently experimental.
Since:
1.0
Author:
Graeme Rocher
  • Field Details

  • Constructor Details

    • JsonStreamMediaTypeCodec

      public JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable CodecConfiguration codecConfiguration)
      Parameters:
      objectMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
    • JsonStreamMediaTypeCodec

      @Inject public JsonStreamMediaTypeCodec(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable CodecConfiguration codecConfiguration)
      Parameters:
      objectMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
  • Method Details