Package io.micronaut.json.codec
Class JsonMediaTypeCodec
java.lang.Object
io.micronaut.json.codec.MapperMediaTypeCodec
io.micronaut.json.codec.JsonMediaTypeCodec
- All Implemented Interfaces:
MediaTypeCodec
- Direct Known Subclasses:
JsonStreamMediaTypeCodec
A
MediaTypeCodec for JSON and Jackson.- Since:
- 1.0.0
- Author:
- Graeme Rocher
-
Field Summary
FieldsFields inherited from class io.micronaut.json.codec.MapperMediaTypeCodec
additionalTypes, applicationConfiguration, codecConfiguration, mediaType, REGULAR_JSON_MEDIA_TYPE_CODEC_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJsonMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Nullable CodecConfiguration codecConfiguration) JsonMediaTypeCodec(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Nullable CodecConfiguration codecConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected MapperMediaTypeCodeccloneWithMapper(JsonMapper mapper) Methods inherited from class io.micronaut.json.codec.MapperMediaTypeCodec
cloneWithFeatures, cloneWithViewClass, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode, getJsonMapper, getMediaTypes, supportsTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.http.codec.MediaTypeCodec
decode, decode, decode, decode
-
Field Details
-
CONFIGURATION_QUALIFIER
- See Also:
-
JSON_ADDITIONAL_TYPES
-
-
Constructor Details
-
JsonMediaTypeCodec
public JsonMediaTypeCodec(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
jsonMapper- To read/write JSONapplicationConfiguration- The common application configurationscodecConfiguration- The configuration for the codec
-
JsonMediaTypeCodec
@Inject public JsonMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Named("json") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
jsonCodec- To read/write JSONapplicationConfiguration- The common application configurationscodecConfiguration- The configuration for the codec
-
-
Method Details
-
cloneWithMapper
- Specified by:
cloneWithMapperin classMapperMediaTypeCodec
-