|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.ws.rest.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 interface com.sun.ws.rest.api.core.ResourceConfig |
|---|
FEATURE_CANONICALIZE_URI_PATH, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, 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.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()
Get the set of provider classes to be instantiated in the scope of the Web application. |
java.util.Set<java.lang.Class> |
getResourceClasses()
Get the set of root resource classes to be deployed by the Web application. |
| 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 classes| Method Detail |
|---|
public java.util.Set<java.lang.Class> getResourceClasses()
ResourceConfig
A root resource class is a Java class with a Path
annotation declared on the class.
getResourceClasses in interface ResourceConfigpublic java.util.Set<java.lang.Class> getProviderClasses()
ResourceConfig
A provider class is a Java class with a Provider
annotation declared on the class that implements a specific service
interface.
getProviderClasses in interface ResourceConfigpublic java.util.Map<java.lang.String,java.lang.Boolean> getFeatures()
ResourceConfig
getFeatures in interface ResourceConfigpublic boolean getFeature(java.lang.String featureName)
ResourceConfig
getFeature in interface ResourceConfigfeatureName - the feature name.
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
ResourceConfig
getProperties in interface ResourceConfigpublic java.lang.Object getProperty(java.lang.String propertyName)
ResourceConfig
getProperty in interface ResourceConfigpropertyName - the property name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||