public interface ApplicationConstant
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_SERIALIZE_NULL_VALUES
Name of the property that defines if data attributes with a
null
value must be serialized or not. |
static String |
REST_DEFAULT_APPLICATION_PATH
Default web application
URL mapping for
JAX-RS application. |
static final String REST_DEFAULT_APPLICATION_PATH
URL mapping for
JAX-RS application.
This constant may be used with the ApplicationPath
annotation when applied to a subclass of RESTApplicationAbstract.
Here is a sample:
@ApplicationPath(REST_DEFAULT_APPLICATION_PATH)
static final String KEY_SERIALIZE_NULL_VALUES
null
value must be serialized or not.
If the property value is set with true,
then data attributes with null values will appear in the serialized
response like the following:
{
"attribute-1":null,
"attribute-2":"aValue",
"attribute-3":null
}
If it is set with false, then data attributes with null
values will be skipped.
{
"attribute-2":"aValue"
}
Its default value is false.