@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, supportsTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, decode, decode, decodepublic 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 MediaTypeCodecgetMediaTypes in class MapperMediaTypeCodecprotected MapperMediaTypeCodec cloneWithMapper(JsonMapper mapper)
cloneWithMapper in class JsonMediaTypeCodec