X

Pavel Bucek's Weblog

  • July 11, 2011

Jersey - Server and Client side configuration

Originaly this was supposed to be something what are we lacking in our user guide - list of all init params plus at least one sample to each one.. but I wasn't able to finish it yet (and its on my TODO list for at least six months :-| ). But I think just a list with links to javadoc should be useful as well. Please note that this is not complete list and it might be (but I don't guarantee anything) updated in time.
Reason why I did this is to sum up all possible properties - it is usable even for me (as a developer) because I can't remember everything :-) And I guess that this list will be sometimes included in Jersey user guide.

Server side init params

field (declaration) value
FeaturesAndProperties
FEATURE_DISABLE_XML_SECURITY
"com.sun.jersey.config.feature.DisableXmlSecurity"
FeaturesAndProperties
FEATURE_FORMATTED
"com.sun.jersey.config.feature.Formatted"
FeaturesAndProperties
FEATURE_XMLROOTELEMENT_PROCESSING
"com.sun.jersey.config.feature.XmlRootElementProcessing"
FeaturesAndProperties
FEATURE_PRE_1_4_PROVIDER_PRECEDENCE
"com.sun.jersey.config.feature.Pre14ProviderPrecedence"
JSONMarshaller
FORMATTED
"com.sun.jersey.api.json.JSONMarshaller.formatted"
LoggingFilter
FEATURE_LOGGING_DISABLE_ENTITY
"com.sun.jersey.config.feature.logging.DisableEntitylogging"
ClassNamesResourceConfig
PROPERTY_CLASSNAMES
"com.sun.jersey.config.property.classnames"
ClasspathResourceConfig
PROPERTY_CLASSPATH
"com.sun.jersey.config.property.classpath"
PackagesResourceConfig
PROPERTY_PACKAGES
"com.sun.jersey.config.property.packages"
ResourceConfig
FEATURE_NORMALIZE_URI
"com.sun.jersey.config.feature.NormalizeURI"
ResourceConfig
FEATURE_CANONICALIZE_URI_PATH
"com.sun.jersey.config.feature.CanonicalizeURIPath"
ResourceConfig
FEATURE_REDIRECT
"com.sun.jersey.config.feature.Redirect"
ResourceConfig
FEATURE_MATCH_MATRIX_PARAMS
"com.sun.jersey.config.feature.IgnoreMatrixParams"
ResourceConfig
FEATURE_IMPLICIT_VIEWABLES
"com.sun.jersey.config.feature.ImplicitViewables"
ResourceConfig
FEATURE_DISABLE_WADL
"com.sun.jersey.config.feature.DisableWADL"
ResourceConfig
FEATURE_TRACE
"com.sun.jersey.config.feature.Trace"
ResourceConfig
FEATURE_TRACE_PER_REQUEST
"com.sun.jersey.config.feature.TracePerRequest"
ResourceConfig
PROPERTY_MEDIA_TYPE_MAPPINGS
"com.sun.jersey.config.property.MediaTypeMappings"
ResourceConfig
PROPERTY_LANGUAGE_MAPPINGS
"com.sun.jersey.config.property.LanguageMappings"
ResourceConfig
PROPERTY_DEFAULT_RESOURCE_COMPONENT
_PROVIDER_FACTORY_CLASS
"com.sun.jersey.config.property.
DefaultResourceComponentProviderFactoryClass"
ResourceConfig
PROPERTY_CONTAINER_NOTIFIER
"com.sun.jersey.spi.container.ContainerNotifier"
ResourceConfig
PROPERTY_CONTAINER_REQUEST_FILTERS
"com.sun.jersey.spi.container.ContainerRequestFilters"
ResourceConfig
PROPERTY_CONTAINER_RESPONSE_FILTERS
"com.sun.jersey.spi.container.ContainerResponseFilters"
ResourceConfig
PROPERTY_RESOURCE_FILTER_FACTORIES
"com.sun.jersey.spi.container.ResourceFilters"
ResourceConfig
PROPERTY_WADL_GENERATOR_CONFIG
"com.sun.jersey.config.property.WadlGeneratorConfig"
ServletContainer
GLASSFISH_DEFAULT_ERROR_PAGE_RESPONSE
"org.glassfish.web.isDefaultErrorPageEnabled"
ServletContainer
APPLICATION_CONFIG_CLASS
"javax.ws.rs.Application"
ServletContainer
RESOURCE_CONFIG_CLASS
"com.sun.jersey.config.property.resourceConfigClass"
ServletContainer
JSP_TEMPLATES_BASE_PATH
"com.sun.jersey.config.property.JSPTemplatesBasePath"
ServletContainer
PROPERTY_WEB_PAGE_CONTENT_REGEX
"com.sun.jersey.config.property.WebPageContentRegex"
ServletContainer
FEATURE_FILTER_FORWARD_ON_404
"com.sun.jersey.config.feature.FilterForwardOn404"
ServletContainer
PROPERTY_FILTER_CONTEXT_PATH
"com.sun.jersey.config.feature.FilterContextPath"
WebComponent
APPLICATION_CONFIG_CLASS
"javax.ws.rs.Application"
WebComponent
RESOURCE_CONFIG_CLASS
"com.sun.jersey.config.property.resourceConfigClass"
WebComponent
JSP_TEMPLATES_BASE_PATH
"com.sun.jersey.config.property.JSPTemplatesBasePath"

Client side init params

field (declaration) value
ClientConfig
PROPERTY_FOLLOW_REDIRECTS
"com.sun.jersey.client.property.followRedirects"
ClientConfig
PROPERTY_READ_TIMEOUT
"com.sun.jersey.client.property.readTimeout"
ClientConfig
PROPERTY_CONNECT_TIMEOUT
"com.sun.jersey.client.property.connectTimeout"
ClientConfig
PROPERTY_CHUNKED_ENCODING_SIZE
"com.sun.jersey.client.property.chunkedEncodingSize"
ClientConfig
PROPERTY_BUFFER_RESPONSE_
ENTITY_ON_EXCEPTION
"com.sun.jersey.client.property.
bufferResponseEntityOnException"
ClientConfig
PROPERTY_THREADPOOL_SIZE
"com.sun.jersey.client.property.threadpoolSize"
HTTPSProperties
PROPERTY_HTTPS_PROPERTIES
"com.sun.jersey.client.impl.urlconnection.httpsProperties"
URLConnectionClientHandler
PROPERTY_HTTP_URL_CONNECTION
_SET_METHOD_WORKAROUND
"com.sun.jersey.client.property.
httpUrlConnectionSetMethodWorkaround"
ApacheHttpClientConfig
PROPERTY_INTERACTIVE
"com.sun.jersey.impl.client.httpclient.interactive"
ApacheHttpClientConfig
PROPERTY_HANDLE_COOKIES
"com.sun.jersey.impl.client.httpclient.handleCookies"
ApacheHttpClientConfig
PROPERTY_CREDENTIALS_PROVIDER
"com.sun.jersey.impl.client.httpclient.credentialsProvider"
ApacheHttpClientConfig
PROPERTY_PREEMPTIVE_AUTHENTICATION
"com.sun.jersey.impl.client.httpclient.preemptiveAuthentication"
ApacheHttpClientConfig
PROPERTY_PROXY_URI
"com.sun.jersey.impl.client.httpclient.proxyURI"
ApacheHttpClientConfig
PROPERTY_HTTP_STATE
"com.sun.jersey.impl.client.httpclient.httpState"
ApacheHttpClient4Config
PROPERTY_DISABLE_COOKIES
"com.sun.jersey.impl.client.httpclient.handleCookies"
ApacheHttpClient4Config
PROPERTY_CREDENTIALS_PROVIDER
"com.sun.jersey.impl.client.httpclient.credentialsProvider"
ApacheHttpClient4Config
PROPERTY_PREEMPTIVE_
BASIC_AUTHENTICATION
"com.sun.jersey.impl.client.httpclient.
preemptiveBasicAuthentication"
ApacheHttpClient4Config
PROPERTY_CONNECTION_MANAGER
"com.sun.jersey.impl.client.httpclient.connectionManager"
ApacheHttpClient4Config
PROPERTY_HTTP_PARAMS
"com.sun.jersey.impl.client.httpclient.httpParams"
ApacheHttpClient4Config
PROPERTY_PROXY_URI
"com.sun.jersey.impl.client.httpclient.proxyURI"
ApacheHttpClient4Config
PROPERTY_PROXY_USERNAME
"com.sun.jersey.impl.client.httpclient.proxyUsername"
ApacheHttpClient4Config
PROPERTY_PROXY_PASSWORD
"com.sun.jersey.impl.client.httpclient.proxyPassword"

Join the discussion

Comments ( 2 )
  • guest Thursday, December 22, 2011

    Hey!

    Any update on getting this into the official documentation? That would be tremendously helpful as currently you basically have to dig for this information in Google and StackOverflow etc.

    Cheers


  • sshakil Friday, July 27, 2012

    great post; wish they'd update it by now


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.