public class GsonFeature extends Object implements javax.ws.rs.core.Feature
Feature to register Gson JSON providers and context resolver.| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_NAME
Feature name
|
static String |
JAXRS_DISABLE_GSON_AUTO_CONFIG
Property name to put in JAX-RS application configuration to disable Gson provider (message body reader and
writer) and context resolver auto-configuration.
|
static String |
JAXRS_DISABLE_GSON_CONTEXT_RESOLVER
Property name to put in JAX-RS application configuration to disable Gson 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 and Description |
|---|
GsonFeature() |
public static final String JAXRS_DISABLE_GSON_AUTO_CONFIG
public static final String JAXRS_DISABLE_GSON_CONTEXT_RESOLVER
public static final String JAXRS_JSON_PRETTY_PRINT
public static final String FEATURE_NAME
Copyright © 2019 The Holon Platform. All rights reserved.