Links: Table of Contents | Single HTML

Appendix A. Configuration Properties

A.1. Common (client/server) configuration properties

List of common configuration properties that can be found in CommonProperties class. All of these properties can be overridden by their server/client counterparts.

Table A.1. List of common configuration properties

ConstantValueDescription
CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLEjersey.config.disableAutoDiscovery

Disables feature auto discovery globally on client/server. Default value is false.

CommonProperties.JSON_PROCESSING_FEATURE_DISABLEjersey.config.disableJsonProcessing

Disables configuration of Json Processing (JSR-353) feature. Default value is false.

CommonProperties.MOXY_JSON_FEATURE_DISABLEjersey.config.disableMoxyJson

Disables configuration of MOXy Json feature. Default value is false.

CommonProperties.OUTBOUND_CONTENT_LENGTH_BUFFERjersey.config.contentLength.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. Default value is 8192.


A.2. Server configuration properties

List of server configuration properties that can be found in ServerProperties class.

Table A.2. List of server configuration properties

ConstantValueDescription
 jersey.config.contentLength.buffer.server

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. Default value is 8192.

ServerProperties.BV_FEATURE_DISABLEjersey.config.beanValidation.disable.server

Disables Bean Validation support. Default value is false.

ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECKjersey.config.beanValidation.disable.validateOnExecutableCheck.server

Disables @ValidateOnExecution check. Default value is false.

ServerProperties.BV_SEND_ERROR_IN_RESPONSEjersey.config.beanValidation.enableOutputValidationErrorEntity.server

Enables sending validation error information to the client. Default value is false.

ServerProperties.FEATURE_AUTO_DISCOVERY_DISABLEjersey.config.disableAutoDiscovery.server

Disables feature auto discovery on server. Default value is false.

ServerProperties.HTTP_METHOD_OVERRIDEjersey.config.server.httpMethodOverride

Defines configuration of HTTP method overriding. This property is used by HttpMethodOverrideFilter to determine where it should look for method override information (e.g. request header or query parameters).

ServerProperties.JSON_PROCESSING_FEATURE_DISABLEjersey.config.disableJsonProcessing.server

Disables configuration of Json Processing (JSR-353) feature. Default value is false.

ServerProperties.LANGUAGE_MAPPINGSjersey.config.server.languageMappings

Defines mapping of URI extensions to languages. The property is used by UriConnegFilter.

ServerProperties.MEDIA_TYPE_MAPPINGSjersey.config.server.mediaTypeMappings

Defines mapping of URI extensions to media types. The property is used by UriConnegFilter.

ServerProperties.MOXY_JSON_FEATURE_DISABLEjersey.config.disableMoxyJson.server

Disables configuration of MOXy Json feature. Default value is false.

ServerProperties.PROVIDER_CLASSNAMESjersey.config.server.provider.classnames

Defines one or more class names that implement application-specific resources and providers. If the property is set, the specified classes will be instantiated and registered as either application JAX-RS root resources or providers.

ServerProperties.PROVIDER_CLASSPATHjersey.config.server.provider.classpath

Defines class-path that contains application-specific resources and providers. If the property is set, the specified packages will be scanned for JAX-RS root resources and providers.

ServerProperties.PROVIDER_PACKAGESjersey.config.server.provider.packages

Defines one or more packages that contain application-specific resources and providers. If the property is set, the specified packages will be scanned for JAX-RS root resources and providers.

ServerProperties.PROVIDER_SCANNING_RECURSIVEjersey.config.server.provider.scanning.recursive

Sets the recursion strategy for package scanning. Default value is true.

ServerProperties.RESOURCE_VALIDATION_DISABLEjersey.config.server.resource.validation.disable

Disables Resource validation. Default value is false.

ServerProperties.RESOURCE_VALIDATION_IGNORE_ERRORSjersey.config.server.resource.validation.ignoreErrors

Determines whether validation of application resource models should fail even in case of a fatal validation errors. Default value is false.

ServerProperties.WADL_FEATURE_DISABLEjersey.config.server.wadl.disableWadl

Disables WADL generation. Default value is false.

ServerProperties.WADL_GENERATOR_CONFIGjersey.config.server.wadl.generatorConfig

Defines the wadl generator configuration that provides a WadlGenerator.


A.3. Client configuration properties

List of client configuration properties that can be found in ClientProperties class.

Table A.3. List of client configuration properties

ConstantValueDescription
 jersey.config.contentLength.buffer.client

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. Default value is 8192.

ClientProperties.ASYNC_THREADPOOL_SIZEjersey.config.client.async.threadPoolSize

Asynchronous thread pool size. Default value is not set. NOT SUPPORTED.

ClientProperties.BUFFER_RESPONSE_ENTITY_ON_EXCEPTIONjersey.config.client.bufferResponseEntityOnException

Automatic response buffering in case of an exception. Default value is true. NOT SUPPORTED.

ClientProperties.CHUNKED_ENCODING_SIZEjersey.config.client.chunkedEncodingSize

Chunked encoding size. Default value is not set. NOT SUPPORTED.

ClientProperties.CONNECT_TIMEOUTjersey.config.client.connectTimeout

Read timeout interval, in milliseconds. Default value is 0 (infinity).

ClientProperties.FEATURE_AUTO_DISCOVERY_DISABLEjersey.config.disableAutoDiscovery.client

Disables feature auto discovery on client. Default value is false.

ClientProperties.FOLLOW_REDIRECTSjersey.config.client.followRedirects

Declares that the client will automatically redirect to the URI declared in 3xx responses. Default value is true.

ClientProperties.HTTP_URL_CONNECTION_SET_METHOD_WORKAROUNDjersey.config.client.httpUrlConnection.setMethodWorkaround

Declares that the client will try to set unsupported HTTP method to HttpURLConnection via reflection. Default value is false.

ClientProperties.JSON_PROCESSING_FEATURE_DISABLEjersey.config.disableJsonProcessing.client

Disables configuration of Json Processing (JSR-353) feature. Default value is false.

ClientProperties.MOXY_JSON_FEATURE_DISABLEjersey.config.disableMoxyJson.client

Disables configuration of MOXy Json feature. Default value is false.

ClientProperties.READ_TIMEOUTjersey.config.client.readTimeout

Read timeout interval, in milliseconds. Default value is 0 (infinity).

ClientProperties.USE_ENCODINGjersey.config.client.useEncoding

Indicates the value of Content-Encoding property the EncodingFilter should be adding. Default value is not set.