public final class CommonProperties extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOW_SYSTEM_PROPERTIES_PROVIDER
Property which allows (if true) default System properties configuration provider.
|
static String |
FEATURE_AUTO_DISCOVERY_DISABLE
If
true then disable feature auto discovery globally on client/server. |
static String |
FEATURE_AUTO_DISCOVERY_DISABLE_CLIENT
Client-specific version of
FEATURE_AUTO_DISCOVERY_DISABLE . |
static String |
FEATURE_AUTO_DISCOVERY_DISABLE_SERVER
Server-specific version of
FEATURE_AUTO_DISCOVERY_DISABLE . |
static String |
JAXRS_SERVICE_LOADING_ENABLE
Allows API services loading.
|
static String |
JSON_JACKSON_DISABLED_MODULES
Comma separated list of jackson modules which shall be excluded from json-jackson processing.
|
static String |
JSON_JACKSON_DISABLED_MODULES_CLIENT
Client-specific version of
JSON_JACKSON_DISABLED_MODULES . |
static String |
JSON_JACKSON_DISABLED_MODULES_SERVER
Server-specific version of
JSON_JACKSON_DISABLED_MODULES . |
static String |
JSON_JACKSON_ENABLED_MODULES
Comma separated list of jackson modules which are only enabled (only those modules will be used)
for json-jackson processing
|
static String |
JSON_JACKSON_ENABLED_MODULES_CLIENT
Client-specific version of
JSON_JACKSON_ENABLED_MODULES . |
static String |
JSON_JACKSON_ENABLED_MODULES_SERVER
Server-specific version of
JSON_JACKSON_ENABLED_MODULES . |
static String |
JSON_PROCESSING_FEATURE_DISABLE
If
true then disable configuration of Json Processing (JSR-353) feature. |
static String |
JSON_PROCESSING_FEATURE_DISABLE_CLIENT
Client-specific version of
JSON_PROCESSING_FEATURE_DISABLE . |
static String |
JSON_PROCESSING_FEATURE_DISABLE_SERVER
Server-specific version of
JSON_PROCESSING_FEATURE_DISABLE . |
static String |
METAINF_SERVICES_LOOKUP_DISABLE
If
true then disable META-INF/services lookup globally on client/server. |
static String |
METAINF_SERVICES_LOOKUP_DISABLE_CLIENT
Client-specific version of
METAINF_SERVICES_LOOKUP_DISABLE . |
static String |
METAINF_SERVICES_LOOKUP_DISABLE_SERVER
Server-specific version of
METAINF_SERVICES_LOOKUP_DISABLE . |
static String |
MOXY_JSON_FEATURE_DISABLE
If
true then disable configuration of MOXy Json feature. |
static String |
MOXY_JSON_FEATURE_DISABLE_CLIENT
Client-specific version of
MOXY_JSON_FEATURE_DISABLE . |
static String |
MOXY_JSON_FEATURE_DISABLE_SERVER
Server-specific version of
MOXY_JSON_FEATURE_DISABLE . |
static String |
OUTBOUND_CONTENT_LENGTH_BUFFER
An integer value that defines the buffer size used to buffer the outbound message entity in order to
determine its size and set the value of HTTP "Content-Length" header.
|
static String |
OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT
Client-specific version of
OUTBOUND_CONTENT_LENGTH_BUFFER . |
static String |
OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER
Server-specific version of
OUTBOUND_CONTENT_LENGTH_BUFFER . |
static String |
PROVIDER_DEFAULT_DISABLE
Disable some of the default providers from being loaded.
|
Modifier and Type | Method and Description |
---|---|
static <T> T |
getValue(Map<String,?> properties,
jakarta.ws.rs.RuntimeType runtime,
String propertyName,
Class<T> type)
Get the value of the specified property.
|
static <T> T |
getValue(Map<String,?> properties,
jakarta.ws.rs.RuntimeType runtime,
String propertyName,
T defaultValue)
Get the value of the specified property.
|
static <T> T |
getValue(Map<String,?> properties,
jakarta.ws.rs.RuntimeType runtime,
String propertyName,
T defaultValue,
Class<T> type)
Get the value of the specified property.
|
static <T> T |
getValue(Map<String,?> properties,
String propertyName,
Class<T> type)
Get the value of the specified property.
|
static <T> T |
getValue(Map<String,?> properties,
String propertyName,
T defaultValue)
Get the value of the specified property.
|
public static final String ALLOW_SYSTEM_PROPERTIES_PROVIDER
public static final String FEATURE_AUTO_DISCOVERY_DISABLE
true
then disable feature auto discovery globally on client/server.
By default auto discovery is automatically enabled. The value of this property may be overridden by the client/server variant of this property.
The default value is false
.
The name of the configuration property is "jersey.config.disableAutoDiscovery".
public static final String FEATURE_AUTO_DISCOVERY_DISABLE_CLIENT
FEATURE_AUTO_DISCOVERY_DISABLE
.
If present, it overrides the generic one for the client environment.public static final String FEATURE_AUTO_DISCOVERY_DISABLE_SERVER
FEATURE_AUTO_DISCOVERY_DISABLE
.
If present, it overrides the generic one for the server environment.public static final String JSON_PROCESSING_FEATURE_DISABLE
true
then disable configuration of Json Processing (JSR-353) feature.
By default Json Processing is automatically enabled. The value of this property may be overridden by the client/server variant of this property.
The default value is false
.
The name of the configuration property is "jersey.config.disableJsonProcessing".
public static final String JSON_PROCESSING_FEATURE_DISABLE_CLIENT
JSON_PROCESSING_FEATURE_DISABLE
.
If present, it overrides the generic one for the client environment.public static final String JSON_PROCESSING_FEATURE_DISABLE_SERVER
JSON_PROCESSING_FEATURE_DISABLE
.
If present, it overrides the generic one for the server environment.public static final String METAINF_SERVICES_LOOKUP_DISABLE
true
then disable META-INF/services lookup globally on client/server.
By default Jersey looks up SPI implementations described by META-INF/services/* files.
Then you can register appropriate provider classes by Application
.
The default value is false
.
The name of the configuration property is "jersey.config.disableMetainfServicesLookup".
public static final String METAINF_SERVICES_LOOKUP_DISABLE_CLIENT
METAINF_SERVICES_LOOKUP_DISABLE
.
If present, it overrides the generic one for the client environment.public static final String METAINF_SERVICES_LOOKUP_DISABLE_SERVER
METAINF_SERVICES_LOOKUP_DISABLE
.
If present, it overrides the generic one for the server environment.public static final String MOXY_JSON_FEATURE_DISABLE
true
then disable configuration of MOXy Json feature.
By default MOXy Json is automatically enabled. The value of this property may be overridden by the client/server variant of this property.
The default value is false
.
The name of the configuration property is "jersey.config.disableMoxyJson".
public static final String MOXY_JSON_FEATURE_DISABLE_CLIENT
MOXY_JSON_FEATURE_DISABLE
.
If present, it overrides the generic one for the client environment.public static final String MOXY_JSON_FEATURE_DISABLE_SERVER
MOXY_JSON_FEATURE_DISABLE
.
If present, it overrides the generic one for the server environment.public static final String OUTBOUND_CONTENT_LENGTH_BUFFER
If the entity size exceeds the configured buffer size, the buffering would be cancelled and the entity size would not be determined. Value less or equal to zero disable the buffering of the entity at all.
The value of this property may be overridden by the client/server variant of this property by defining the suffix to this property ".server" or ".client" ("jersey.config.contentLength.buffer".server or "jersey.config.contentLength.buffer".client).The default value is 8192.
The name of the configuration property is "jersey.config.contentLength.buffer".
public static final String OUTBOUND_CONTENT_LENGTH_BUFFER_CLIENT
OUTBOUND_CONTENT_LENGTH_BUFFER
.
If present, it overrides the generic one for the client environment.public static final String OUTBOUND_CONTENT_LENGTH_BUFFER_SERVER
OUTBOUND_CONTENT_LENGTH_BUFFER
.
If present, it overrides the generic one for the server environment.public static final String PROVIDER_DEFAULT_DISABLE
DATASOURCE, DOMSOURCE, RENDEREDIMAGE, SAXSOURCE, SOURCE, STREAMSOURCE
,
or to disable all: ALL
. Multiple options can be disabled by adding multiple comma separated values.public static final String JAXRS_SERVICE_LOADING_ENABLE
public static final String JSON_JACKSON_ENABLED_MODULES
public static final String JSON_JACKSON_ENABLED_MODULES_CLIENT
JSON_JACKSON_ENABLED_MODULES
.
If present, it overrides the generic one for the client environment.public static final String JSON_JACKSON_ENABLED_MODULES_SERVER
JSON_JACKSON_ENABLED_MODULES
.
If present, it overrides the generic one for the server environment.public static final String JSON_JACKSON_DISABLED_MODULES
public static final String JSON_JACKSON_DISABLED_MODULES_CLIENT
JSON_JACKSON_DISABLED_MODULES
.
If present, it overrides the generic one for the client environment.public static final String JSON_JACKSON_DISABLED_MODULES_SERVER
JSON_JACKSON_DISABLED_MODULES
.
If present, it overrides the generic one for the client environment.public static <T> T getValue(Map<String,?> properties, String propertyName, Class<T> type)
null
.properties
- Map of properties to get the property value from.propertyName
- Name of the property.type
- Type to retrieve the value as.null
.public static <T> T getValue(Map<String,?> properties, String propertyName, T defaultValue)
defaultValue
type,
the specified defaultValue
is returned. Calling this method is equivalent to calling
CommonProperties.getValue(properties, key, defaultValue, (Class<T>) defaultValue.getClass())
T
- Type of the property value.properties
- Map of properties to get the property value from.propertyName
- Name of the property.defaultValue
- Default value if property is not registerednull
.public static <T> T getValue(Map<String,?> properties, jakarta.ws.rs.RuntimeType runtime, String propertyName, T defaultValue)
defaultValue
type,
the specified defaultValue
is returned. Calling this method is equivalent to calling
CommonProperties.getValue(properties, runtimeType, key, defaultValue, (Class<T>) defaultValue.getClass())
T
- Type of the property value.properties
- Map of properties to get the property value from.runtime
- Runtime type which is used to check whether there is a property with the same
key
but post-fixed by runtime type (.server
or .client
) which would override the key
property.propertyName
- Name of the property.defaultValue
- Default value if property is not registerednull
.public static <T> T getValue(Map<String,?> properties, jakarta.ws.rs.RuntimeType runtime, String propertyName, T defaultValue, Class<T> type)
defaultValue
.T
- Type of the property value.properties
- Map of properties to get the property value from.runtime
- Runtime type which is used to check whether there is a property with the same
key
but post-fixed by runtime type (.server
or .client
) which would override the key
property.propertyName
- Name of the property.defaultValue
- Default value if property is not registeredtype
- Type to retrieve the value as.null
.public static <T> T getValue(Map<String,?> properties, jakarta.ws.rs.RuntimeType runtime, String propertyName, Class<T> type)
null
.T
- Type of the property value.properties
- Map of properties to get the property value from.runtime
- Runtime type which is used to check whether there is a property with the same
key
but post-fixed by runtime type (.server
or .client
) which would override the key
property.propertyName
- Name of the property.type
- Type to retrieve the value as.null
.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.