Package io.micronaut.jackson.codec
Class JsonStreamMediaTypeCodec
java.lang.Object
io.micronaut.json.codec.MapperMediaTypeCodec
io.micronaut.jackson.codec.JacksonMediaTypeCodec
io.micronaut.jackson.codec.JsonMediaTypeCodec
io.micronaut.jackson.codec.JsonStreamMediaTypeCodec
- All Implemented Interfaces:
MediaTypeCodec
@Secondary
@Singleton
@Bean(typed={JsonStreamMediaTypeCodec.class,JacksonMediaTypeCodec.class})
public class JsonStreamMediaTypeCodec
extends JsonMediaTypeCodec
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 Summary
Fields inherited from class io.micronaut.jackson.codec.JacksonMediaTypeCodec
REGULAR_JSON_MEDIA_TYPE_CODEC_NAME
Fields inherited from class io.micronaut.json.codec.MapperMediaTypeCodec
applicationConfiguration, codecConfiguration, mediaType
-
Constructor Summary
ConstructorDescriptionJsonStreamMediaTypeCodec
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationConfiguration applicationConfiguration, @Nullable CodecConfiguration codecConfiguration) JsonStreamMediaTypeCodec
(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ApplicationConfiguration applicationConfiguration, @Nullable CodecConfiguration codecConfiguration) -
Method Summary
Methods inherited from class io.micronaut.jackson.codec.JsonMediaTypeCodec
cloneWithFeatures
Methods inherited from class io.micronaut.jackson.codec.JacksonMediaTypeCodec
cloneWithFeatures, cloneWithMapper, decode, getObjectMapper
Methods inherited from class io.micronaut.json.codec.MapperMediaTypeCodec
cloneWithViewClass, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode, getJsonMapper, supportsType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.http.codec.MediaTypeCodec
decode, decode, decode, decode
-
Field Details
-
CONFIGURATION_QUALIFIER
- See Also:
-
-
Constructor Details
-
JsonStreamMediaTypeCodec
public JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
objectMapper
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codec
-
JsonStreamMediaTypeCodec
@Inject public JsonStreamMediaTypeCodec(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
objectMapper
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codec
-
-
Method Details
-
getMediaTypes
- Specified by:
getMediaTypes
in interfaceMediaTypeCodec
- Overrides:
getMediaTypes
in classMapperMediaTypeCodec
- Returns:
- The media type of the codec
-