|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.ServerProperties
public final class ServerProperties
Jersey server-side configuration properties.
| Field Summary | |
|---|---|
static java.lang.String |
COMMON_DELIMITERS
Common delimiters used by various properties. |
static java.lang.String |
LANGUAGE_MAPPINGS
Defines mapping of URI extensions to languages. |
static java.lang.String |
MEDIA_TYPE_MAPPINGS
Defines mapping of URI extensions to media types. |
static java.lang.String |
PROVIDER_CLASSNAMES
Defines one or more class names that implement application-specific resources and providers. |
static java.lang.String |
PROVIDER_CLASSPATH
Defines class-path that contains application-specific resources and providers. |
static java.lang.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 |
|---|
public static final java.lang.String COMMON_DELIMITERS
public static final java.lang.String PROVIDER_PACKAGES
@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".
public static final java.lang.String PROVIDER_CLASSPATH
@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".
public static final java.lang.String PROVIDER_CLASSNAMES
@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".
public static final java.lang.String MEDIA_TYPE_MAPPINGS
UriConnegFilter. See it's javadoc for more
information on media type mappings.
The property value MUST be an instance of String, String[] or Map<String, MediaType>.
Each String instance represents one or more uri-extension-to-media-type map entries separated by
a comma (","). Each map entry is a key-value pair separated by a colon (":").
Here is an example of an acceptable String value mapping txt extension to text/plain and xml extension to application/xml:
txt : text/plain, xml : application/xml
A default value is not set.
The name of the configuration property is "jersey.config.server.mediaTypeMappings".
public static final java.lang.String LANGUAGE_MAPPINGS
UriConnegFilter. See it's javadoc for more
information on language mappings.
The property value MUST be an instance of String, String[] or Map<String, String>.
Each String instance represents one or more uri-extension-to-language map entries separated by
a comma (","). Each map entry is a key-value pair separated by a colon (":").
Here is an example of an acceptable String value mapping english extension to "en" value of Content-Language header
and french extension to "fr" Content-Language header value:
english : en, french : fr
A default value is not set.
The name of the configuration property is "jersey.config.server.languageMappings".
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||