@Secondary @Singleton @Bean(typed={JsonStreamMediaTypeCodec.class,JacksonMediaTypeCodec.class}) public class JsonStreamMediaTypeCodec extends JsonMediaTypeCodec
MediaType.APPLICATION_JSON_STREAM
.
Note: will be replaced by JsonStreamMediaTypeCodec
in the future, but that class is
currently experimental.Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_QUALIFIER |
REGULAR_JSON_MEDIA_TYPE_CODEC_NAME
applicationConfiguration, codecConfiguration, mediaType
Constructor and Description |
---|
JsonStreamMediaTypeCodec(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
Modifier and Type | Method and Description |
---|---|
Collection<MediaType> |
getMediaTypes() |
cloneWithFeatures
cloneWithFeatures, cloneWithMapper, decode, getObjectMapper
cloneWithViewClass, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode, getJsonMapper, supportsType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
decode, decode, decode, decode
public static final String CONFIGURATION_QUALIFIER
public JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper, ApplicationConfiguration applicationConfiguration, @Named(value="json-stream") @Nullable CodecConfiguration codecConfiguration)
objectMapper
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codec@Inject public JsonStreamMediaTypeCodec(BeanProvider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper, ApplicationConfiguration applicationConfiguration, @Named(value="json-stream") @Nullable CodecConfiguration codecConfiguration)
objectMapper
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codecpublic Collection<MediaType> getMediaTypes()
getMediaTypes
in interface MediaTypeCodec
getMediaTypes
in class MapperMediaTypeCodec