@Singleton public class JsonStreamMediaTypeCodec extends JsonMediaTypeCodec
MediaType.APPLICATION_JSON_STREAM
.Modifier and Type | Field and Description |
---|---|
static String |
CONFIGURATION_QUALIFIER |
additionalTypes, applicationConfiguration, codecConfiguration, mediaType, REGULAR_JSON_MEDIA_TYPE_CODEC_NAME
Constructor and Description |
---|
JsonStreamMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
JsonStreamMediaTypeCodec(JsonMapper jsonMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected MapperMediaTypeCodec |
cloneWithMapper(JsonMapper mapper) |
Collection<MediaType> |
getMediaTypes() |
cloneWithFeatures, 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(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Named(value="json-stream") @Nullable CodecConfiguration codecConfiguration)
jsonMapper
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codec@Inject public JsonStreamMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Named(value="json-stream") @Nullable CodecConfiguration codecConfiguration)
jsonCodec
- To read/write JSONapplicationConfiguration
- The common application configurationscodecConfiguration
- The configuration for the codecpublic Collection<MediaType> getMediaTypes()
getMediaTypes
in interface MediaTypeCodec
getMediaTypes
in class MapperMediaTypeCodec
protected MapperMediaTypeCodec cloneWithMapper(JsonMapper mapper)
cloneWithMapper
in class JsonMediaTypeCodec