Class JsonStreamMediaTypeCodec

All Implemented Interfaces:
io.micronaut.http.codec.MediaTypeCodec

@Singleton @Deprecated(forRemoval=true, since="4.7") public class JsonStreamMediaTypeCodec extends JsonMediaTypeCodec
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced with message body writers / readers API
A codec for MediaType.APPLICATION_JSON_STREAM.
Since:
1.0
  • 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

    • JsonStreamMediaTypeCodec

      public JsonStreamMediaTypeCodec(JsonMapper jsonMapper, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable io.micronaut.http.codec.CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      jsonMapper - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
    • JsonStreamMediaTypeCodec

      @Inject public JsonStreamMediaTypeCodec(io.micronaut.context.BeanProvider<JsonMapper> jsonCodec, io.micronaut.runtime.ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable io.micronaut.http.codec.CodecConfiguration codecConfiguration)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      jsonCodec - To read/write JSON
      applicationConfiguration - The common application configurations
      codecConfiguration - The configuration for the codec
  • Method Details

    • getMediaTypes

      public Collection<io.micronaut.http.MediaType> getMediaTypes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getMediaTypes in interface io.micronaut.http.codec.MediaTypeCodec
      Overrides:
      getMediaTypes in class MapperMediaTypeCodec
    • cloneWithMapper

      protected MapperMediaTypeCodec cloneWithMapper(JsonMapper mapper)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      cloneWithMapper in class JsonMediaTypeCodec