@Singleton public class JsonStreamMediaTypeCodec extends JsonMediaTypeCodec
MediaType.APPLICATION_JSON_STREAM.| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_QUALIFIER |
| Constructor and Description |
|---|
JsonStreamMediaTypeCodec(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Collection<MediaType> |
getMediaTypes() |
decode, decode, decode, decode, encode, encode, encode, getObjectMapper, supportsTypepublic 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 codecpublic Collection<MediaType> getMediaTypes()
getMediaTypes in interface MediaTypeCodecgetMediaTypes in class JsonMediaTypeCodec