Top Description Inners Fields Constructors Methods
tools.jackson.jaxrs.cbor

public Class JacksonJaxbCBORProvider

extends JacksonCBORProvider
Class Inheritance
Annotations
@Provider
@Consumes:*/*
@Produces:application/cbor, */*
Imports
javax.ws.rs.Consumes, .Produces, javax.ws.rs.core.MediaType, javax.ws.rs.ext.Provider, tools.jackson.databind.AnnotationIntrospector, tools.jackson.dataformat.cbor.CBORMapper, tools.jackson.module.jaxb.JaxbAnnotationIntrospector

JSON content type provider automatically configured to use both Jackson and JAXB annotations (in that order of priority). Otherwise functionally same as JacksonCBORProvider.

Typical usage pattern is to just instantiate instance of this provider for JAX-RS and use as is: this will use both Jackson and JAXB annotations (with Jackson annotations having priority).

Note

class annotations are duplicated from super class, since it is not clear whether JAX-RS implementations are required to check settings of super-classes. It is important to keep annotations in sync if changed.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from tools.jackson.jaxrs.cbor.JacksonCBORProvider:
_providers

Constructor Summary

AccessConstructor and Description
public
JacksonJaxbCBORProvider()

Default constructor, usually used when provider is automatically configured to be used with JAX-RS implementation.

public
JacksonJaxbCBORProvider(CBORMapper mapper, AnnotationIntrospector aiOverride)

Constructor to use when a custom mapper (usually components like serializer/deserializer factories that have been configured) is to be used.

Method Summary

Inherited from tools.jackson.jaxrs.cbor.JacksonCBORProvider:
_configForReading_configForWriting_locateMapperViaProviderhasMatchingMediaTypeversion

Constructor Detail

JacksonJaxbCBORProviderback to summary
public JacksonJaxbCBORProvider()

Default constructor, usually used when provider is automatically configured to be used with JAX-RS implementation.

JacksonJaxbCBORProviderback to summary
public JacksonJaxbCBORProvider(CBORMapper mapper, AnnotationIntrospector aiOverride)

Constructor to use when a custom mapper (usually components like serializer/deserializer factories that have been configured) is to be used.

tools.jackson.jaxrs.cbor back to summary

private Class JacksonJaxbCBORProvider.JaxbHolder

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AnnotationIntrospector
get()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JaxbHolderback to summary
private JaxbHolder()

Method Detail

getback to summary
public static AnnotationIntrospector get()