Class XMLMapperConfigurator
- java.lang.Object
-
- com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
- com.fasterxml.jackson.jakarta.rs.xml.XMLMapperConfigurator
-
public class XMLMapperConfigurator extends com.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
Helper class used to encapsulate details of configuring anXmlMapperinstance to be used for data binding, as well as accessing it.
-
-
Constructor Summary
Constructors Constructor Description XMLMapperConfigurator(com.fasterxml.jackson.dataformat.xml.XmlMapper mapper, com.fasterxml.jackson.jakarta.rs.cfg.Annotations[] defAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospector(com.fasterxml.jackson.jakarta.rs.cfg.Annotations ann)protected com.fasterxml.jackson.databind.AnnotationIntrospector_resolveIntrospectors(com.fasterxml.jackson.jakarta.rs.cfg.Annotations[] annotationsToUse)com.fasterxml.jackson.dataformat.xml.XmlMappergetConfiguredMapper()Method that locates, configures and returnsXmlMapperto useprotected com.fasterxml.jackson.dataformat.xml.JacksonXmlModulegetConfiguredModule()com.fasterxml.jackson.dataformat.xml.XmlMappergetDefaultMapper()protected com.fasterxml.jackson.dataformat.xml.XmlMappermapper()Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.
-
-
-
Method Detail
-
getConfiguredMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getConfiguredMapper()
Method that locates, configures and returnsXmlMapperto use- Specified by:
getConfiguredMapperin classcom.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
getDefaultMapper
public com.fasterxml.jackson.dataformat.xml.XmlMapper getDefaultMapper()
- Specified by:
getDefaultMapperin classcom.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
getConfiguredModule
protected com.fasterxml.jackson.dataformat.xml.JacksonXmlModule getConfiguredModule()
-
mapper
protected com.fasterxml.jackson.dataformat.xml.XmlMapper mapper()
Helper method that will ensure that there is a configurable non-default mapper (constructing an instance if one didn't yet exit), and return that mapper.- Specified by:
mapperin classcom.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospectors
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospectors(com.fasterxml.jackson.jakarta.rs.cfg.Annotations[] annotationsToUse)
- Specified by:
_resolveIntrospectorsin classcom.fasterxml.jackson.jakarta.rs.cfg.MapperConfiguratorBase<XMLMapperConfigurator,com.fasterxml.jackson.dataformat.xml.XmlMapper>
-
_resolveIntrospector
protected com.fasterxml.jackson.databind.AnnotationIntrospector _resolveIntrospector(com.fasterxml.jackson.jakarta.rs.cfg.Annotations ann)
-
-