Class JacksonXmlConfiguration

java.lang.Object
io.micronaut.xml.jackson.JacksonXmlConfiguration

@ConfigurationProperties("jackson.xml") public class JacksonXmlConfiguration extends Object
Configuration for the Jackson XML parser and generator.
Since:
2.0.1
  • Constructor Details

    • JacksonXmlConfiguration

      public JacksonXmlConfiguration()
  • Method Details

    • getParserSettings

      public Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,Boolean> getParserSettings()
      Returns:
      Settings for the parser
    • setParser

      public void setParser(Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,Boolean> parser)
      Sets the parser features to use.
      Parameters:
      parser - The parser features
    • getGeneratorSettings

      public Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,Boolean> getGeneratorSettings()
      Returns:
      Settings for the generator
    • setGenerator

      public void setGenerator(Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,Boolean> generator)
      Sets the generator features to use.
      Parameters:
      generator - The generator features
    • isDefaultUseWrapper

      public boolean isDefaultUseWrapper()
      Returns:
      True if default wrapper is used
    • setDefaultUseWrapper

      public void setDefaultUseWrapper(boolean state)
      Define if a wrapper will be used for indexed (List, array) properties or not by default.
      Parameters:
      state - True if wrapping is used by default