org.glassfish.jersey.server
Class ServerProperties

java.lang.Object
  extended by org.glassfish.jersey.server.ServerProperties

public final class ServerProperties
extends Object

Jersey server-side configuration properties.

Author:
Marek Potociar (marek.potociar at oracle.com)

Field Summary
static String COMMON_DELIMITERS
          Common delimiters used by various properties.
static String JAXRS_APPLICATION_CLASS
          Application configuration initialization property whose value is a fully qualified class name of a class that implements Application.
static String PROVIDER_CLASSNAMES
          Defines one or more class names that implement application-specific resources and providers.
static String PROVIDER_CLASSPATH
          Defines class-path that contains application-specific resources and providers.
static String PROVIDER_PACKAGES
          Defines one or more packages that contain application-specific resources and providers.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXRS_APPLICATION_CLASS

public static final String JAXRS_APPLICATION_CLASS
Application configuration initialization property whose value is a fully qualified class name of a class that implements Application.

A default value is not set.

The name of the configuration property is "javax.ws.rs.Application".

See Also:
Constant Field Values

PROVIDER_PACKAGES

public static final String 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 (annotated with @Path) and providers (annotated with @Provider).

The property value MUST be an instance of String or String[] array. Each String instance represents one or more package names that MUST be separated only by characters declared in COMMON_DELIMITERS.

A default value is not set.

The name of the configuration property is "jersey.config.server.provider.packages".

See Also:
Constant Field Values

PROVIDER_CLASSPATH

public static final String PROVIDER_CLASSPATH
Defines class-path that contains application-specific resources and providers. If the property is set, the specified class-path will be scanned for JAX-RS root resources (annotated with @Path) and providers (annotated with @Provider). Each path element MUST be an absolute or relative directory, or a Jar file. The contents of a directory, including Java class files, jars files and sub-directories are scanned (recursively).

The property value MUST be an instance of String or String[] array. Each String instance represents one or more paths that MUST be separated only by characters declared in COMMON_DELIMITERS.

A default value is not set.

The name of the configuration property is "jersey.config.server.provider.classpath".

See Also:
Constant Field Values

PROVIDER_CLASSNAMES

public static final String 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 (annotated with @Path) or providers (annotated with @Provider).

The property value MUST be an instance of String or String[] array. Each String instance represents one or more class names that MUST be separated only by characters declared in COMMON_DELIMITERS.

A default value is not set.

The name of the configuration property is "jersey.config.server.provider.classnames".

See Also:
Constant Field Values

COMMON_DELIMITERS

public static final String COMMON_DELIMITERS
Common delimiters used by various properties.

See Also:
Constant Field Values


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.