@Singleton public class JsonStreamMediaTypeCodec extends JsonMediaTypeCodec
MediaType.APPLICATION_JSON_STREAM
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIGURATION_QUALIFIER |
applicationConfiguration, codecConfiguration, mediaType
Constructor and Description |
---|
JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
JsonStreamMediaTypeCodec(javax.inject.Provider<com.fasterxml.jackson.databind.ObjectMapper> objectMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<MediaType> |
getMediaTypes() |
cloneWithFeatures
decode, decode, decode, decode, encode, encode, encode, getObjectMapper, supportsType
public static final java.lang.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(javax.inject.Provider<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 java.util.Collection<MediaType> getMediaTypes()
getMediaTypes
in interface MediaTypeCodec
getMediaTypes
in class JacksonMediaTypeCodec