Package io.micronaut.json.codec
Class JsonStreamMediaTypeCodec
java.lang.Object
io.micronaut.json.codec.MapperMediaTypeCodec
io.micronaut.json.codec.JsonMediaTypeCodec
io.micronaut.json.codec.JsonStreamMediaTypeCodec
- All Implemented Interfaces:
MediaTypeCodec
A codec for
MediaType.APPLICATION_JSON_STREAM.- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
FieldsFields inherited from class io.micronaut.json.codec.JsonMediaTypeCodec
JSON_ADDITIONAL_TYPESFields inherited from class io.micronaut.json.codec.MapperMediaTypeCodec
additionalTypes, applicationConfiguration, codecConfiguration, mediaType, REGULAR_JSON_MEDIA_TYPE_CODEC_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJsonStreamMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Nullable CodecConfiguration codecConfiguration) JsonStreamMediaTypeCodec(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, 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:
-
-
Constructor Details
-
JsonStreamMediaTypeCodec
public JsonStreamMediaTypeCodec(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
jsonMapper- To read/write JSONapplicationConfiguration- The common application configurationscodecConfiguration- The configuration for the codec
-
JsonStreamMediaTypeCodec
@Inject public JsonStreamMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Named("json-stream") @Nullable @Nullable CodecConfiguration codecConfiguration) - Parameters:
jsonCodec- To read/write JSONapplicationConfiguration- The common application configurationscodecConfiguration- The configuration for the codec
-
-
Method Details
-
getMediaTypes
- Specified by:
getMediaTypesin interfaceMediaTypeCodec- Overrides:
getMediaTypesin classMapperMediaTypeCodec- Returns:
- The media type of the codec
-
cloneWithMapper
- Overrides:
cloneWithMapperin classJsonMediaTypeCodec
-