|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.ws.rs.core.ApplicationConfig
com.sun.jersey.api.core.ResourceConfig
com.sun.jersey.api.core.DefaultResourceConfig
public class DefaultResourceConfig
A mutable implementation of ResourceConfig
that declares
default values for features.
The set of features and properties may be modified by modifying the instances
returned from the methods ResourceConfig.getFeatures()
and
ResourceConfig.getProperties()
respectively.
Field Summary |
---|
Fields inherited from class com.sun.jersey.api.core.ResourceConfig |
---|
FEATURE_CANONICALIZE_URI_PATH, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, PROPERTY_CONTAINER_NOTIFIER, PROPERTY_DEFAULT_RESOURCE_PROVIDER_CLASS |
Constructor Summary | |
---|---|
DefaultResourceConfig()
|
|
DefaultResourceConfig(java.lang.Class<?>... resources)
|
|
DefaultResourceConfig(java.util.Set<java.lang.Class<?>> resources)
|
Method Summary | |
---|---|
boolean |
getFeature(java.lang.String featureName)
Get the value of a feature. |
java.util.Map<java.lang.String,java.lang.Boolean> |
getFeatures()
Get the map of features associated with the Web application. |
java.util.Map<java.lang.String,java.lang.String> |
getLanguageMappings()
|
java.util.Map<java.lang.String,javax.ws.rs.core.MediaType> |
getMediaTypeMappings()
|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties()
Get the map of properties associated with the Web application. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value of a property. |
java.util.Set<java.lang.Class<?>> |
getProviderClasses()
|
java.util.Set<java.lang.Object> |
getProviderInstances()
Get the provider instances to be utilized by the web application. |
java.util.Set<java.lang.Class<?>> |
getResourceClasses()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultResourceConfig()
public DefaultResourceConfig(java.lang.Class<?>... resources)
resources
- the initial set of root resource classespublic DefaultResourceConfig(java.util.Set<java.lang.Class<?>> resources)
resources
- the initial set of root resource classesMethod Detail |
---|
public java.util.Set<java.lang.Class<?>> getResourceClasses()
getResourceClasses
in class javax.ws.rs.core.ApplicationConfig
public java.util.Set<java.lang.Class<?>> getProviderClasses()
getProviderClasses
in class javax.ws.rs.core.ApplicationConfig
public java.util.Map<java.lang.String,javax.ws.rs.core.MediaType> getMediaTypeMappings()
getMediaTypeMappings
in class javax.ws.rs.core.ApplicationConfig
public java.util.Map<java.lang.String,java.lang.String> getLanguageMappings()
getLanguageMappings
in class javax.ws.rs.core.ApplicationConfig
public java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
ResourceConfig
getFeatures
in class ResourceConfig
public boolean getFeature(java.lang.String featureName)
ResourceConfig
getFeature
in class ResourceConfig
featureName
- the feature name.
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
ResourceConfig
getProperties
in class ResourceConfig
public java.lang.Object getProperty(java.lang.String propertyName)
ResourceConfig
getProperty
in class ResourceConfig
propertyName
- the property name.
public java.util.Set<java.lang.Object> getProviderInstances()
ResourceConfig
When the web application is initialized the set of provider instances
will be combined and take precendence over the instances of provider
classes declared by ApplicationConfig
.
getProviderInstances
in class ResourceConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |