@Named(value="json") @Singleton public class JsonMediaTypeCodec extends MapperMediaTypeCodec
MediaTypeCodec for JSON and Jackson.| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_QUALIFIER |
additionalTypes, applicationConfiguration, codecConfiguration, mediaType, REGULAR_JSON_MEDIA_TYPE_CODEC_NAME| Constructor and Description |
|---|
JsonMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
JsonMediaTypeCodec(JsonMapper jsonMapper,
ApplicationConfiguration applicationConfiguration,
CodecConfiguration codecConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected MapperMediaTypeCodec |
cloneWithMapper(JsonMapper mapper) |
cloneWithFeatures, cloneWithViewClass, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encode, getJsonMapper, getMediaTypes, supportsTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdecode, decode, decode, decodepublic static final String CONFIGURATION_QUALIFIER
public JsonMediaTypeCodec(JsonMapper jsonMapper, ApplicationConfiguration applicationConfiguration, @Named(value="json") @Nullable CodecConfiguration codecConfiguration)
jsonMapper - To read/write JSONapplicationConfiguration - The common application configurationscodecConfiguration - The configuration for the codec@Inject public JsonMediaTypeCodec(BeanProvider<JsonMapper> jsonCodec, ApplicationConfiguration applicationConfiguration, @Named(value="json") @Nullable CodecConfiguration codecConfiguration)
jsonCodec - To read/write JSONapplicationConfiguration - The common application configurationscodecConfiguration - The configuration for the codecprotected MapperMediaTypeCodec cloneWithMapper(JsonMapper mapper)
cloneWithMapper in class MapperMediaTypeCodec