com.holonplatform.json.jackson.jaxrs

## Class JacksonFeature

- java.lang.Object
- - com.holonplatform.json.jackson.jaxrs.JacksonFeature

- All Implemented Interfaces:
    javax.ws.rs.core.Feature

      public class JacksonFeature
      extends Object
      implements javax.ws.rs.core.Feature

  JAX-RS `Feature` to register Jackson `PropertyBox` JSON serializers/deserializers and context resolver for properly configured `ObjectMapper`.
  Since:
    5.0.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `FEATURE_NAME` Feature name
    `static String` | `JAXRS_DISABLE_JACKSON_AUTO_CONFIG` Property name to put in JAX-RS application configuration to disable Jackson provider (message body reader and writer) and context resolver auto-configuration.
    `static String` | `JAXRS_DISABLE_JACKSON_CONTEXT_RESOLVER` Property name to put in JAX-RS application configuration to disable Jackson context resolver auto-configuration only (message body reader and writer will be auto-configured).
    `static String` | `JAXRS_JSON_PRETTY_PRINT` Property name to put in JAX-RS application configuration to enable JSON pretty print for the JSON message body writer.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JacksonFeature()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `configure(javax.ws.rs.core.FeatureContext context)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### JAXRS_DISABLE_JACKSON_AUTO_CONFIG

          public static final String JAXRS_DISABLE_JACKSON_AUTO_CONFIG

      Property name to put in JAX-RS application configuration to disable Jackson provider (message body reader and writer) and context resolver auto-configuration.
      See Also:
        Constant Field Values

    - #### JAXRS_DISABLE_JACKSON_CONTEXT_RESOLVER

          public static final String JAXRS_DISABLE_JACKSON_CONTEXT_RESOLVER

      Property name to put in JAX-RS application configuration to disable Jackson context resolver auto-configuration only (message body reader and writer will be auto-configured).
      See Also:
        Constant Field Values

    - #### JAXRS_JSON_PRETTY_PRINT

          public static final String JAXRS_JSON_PRETTY_PRINT

      Property name to put in JAX-RS application configuration to enable JSON pretty print for the JSON message body writer.
      See Also:
        Constant Field Values

    - #### FEATURE_NAME

          public static final String FEATURE_NAME

      Feature name

  - ### Constructor Detail

    - #### JacksonFeature

          public JacksonFeature()

  - ### Method Detail

    - #### configure

          public boolean configure(javax.ws.rs.core.FeatureContext context)

      Specified by:
        `configure` in interface `javax.ws.rs.core.Feature`

Copyright © 2019 The Holon Platform. All rights reserved.