@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_NAMEapplicationConfiguration, 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() |
cloneWithFeaturescloneWithFeatures, cloneWithMapper, decode, getObjectMappercloneWithViewClass, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode, getJsonMapper, supportsTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, decode, decode, decodepublic 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 MediaTypeCodecgetMediaTypes in class MapperMediaTypeCodec