Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.rest.server
Class DefaultResourceConfig

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by com.sun.jersey.api.core.ResourceConfig
          extended by com.sun.jersey.api.core.DefaultResourceConfig
              extended by com.sun.jersey.api.core.ScanningResourceConfig
                  extended by com.tangosol.coherence.rest.server.DefaultResourceConfig

All Implemented Interfaces:
com.sun.jersey.core.util.FeaturesAndProperties, com.sun.jersey.spi.container.ReloadListener
Direct Known Subclasses:
ContainerResourceConfig

public class DefaultResourceConfig
extends com.sun.jersey.api.core.ScanningResourceConfig

An extension of com.sun.jersey.api.core.ScanningResourceConfig that registers the Coherence REST root resource and provider classes, in addition to user defined package names.

Author:
ic 2011.07.05

Field Summary

 

Fields inherited from class com.sun.jersey.api.core.ResourceConfig
COMMON_DELIMITERS, FEATURE_CANONICALIZE_URI_PATH, FEATURE_DISABLE_WADL, FEATURE_IMPLICIT_VIEWABLES, FEATURE_MATCH_MATRIX_PARAMS, FEATURE_NORMALIZE_URI, FEATURE_REDIRECT, FEATURE_TRACE, FEATURE_TRACE_PER_REQUEST, PROPERTY_CONTAINER_NOTIFIER, PROPERTY_CONTAINER_REQUEST_FILTERS, PROPERTY_CONTAINER_RESPONSE_FILTERS, PROPERTY_DEFAULT_RESOURCE_COMPONENT_PROVIDER_FACTORY_CLASS, PROPERTY_LANGUAGE_MAPPINGS, PROPERTY_MEDIA_TYPE_MAPPINGS, PROPERTY_RESOURCE_FILTER_FACTORIES, PROPERTY_WADL_GENERATOR_CONFIG

 

Fields inherited from interface com.sun.jersey.core.util.FeaturesAndProperties
FEATURE_DISABLE_XML_SECURITY, FEATURE_FORMATTED, FEATURE_PRE_1_4_PROVIDER_PRECEDENCE, FEATURE_XMLROOTELEMENT_PROCESSING

 

Constructor Summary
DefaultResourceConfig()
          Default constructor.
DefaultResourceConfig(java.lang.String[] asPackages)
          Construct an instance of ResourceConfig that initialize Coherence predefined properties and searches for root resource classes and providers in the specified packages.

 

Method Summary
protected static java.util.Map getExtensionsMap()
          Construct a map with URL suffix to media type mappings.
protected  void registerContainerRequestFilters()
          Register the predefined Coherence REST container request filters.
protected  void registerContainerResponseFilters()
          Register the predefined Coherence REST container response filters.
protected  void registerProviders()
          Register the default Coherence REST providers.
protected  void registerResourceFilterFactories()
          Register the predefined Coherence REST resource filter factories.
protected  void registerRootResource()
          Register the default Coherence REST root resource class.
 java.lang.String toString()
          

 

Methods inherited from class com.sun.jersey.api.core.ScanningResourceConfig
init, onReload, reload

 

Methods inherited from class com.sun.jersey.api.core.DefaultResourceConfig
getClasses, getExplicitRootResources, getFeature, getFeatures, getLanguageMappings, getMediaTypeMappings, getProperties, getProperty, getSingletons

 

Methods inherited from class com.sun.jersey.api.core.ResourceConfig
add, clone, getContainerRequestFilters, getContainerResponseFilters, getElements, getElements, getProviderClasses, getProviderSingletons, getResourceFilterFactories, getRootResourceClasses, getRootResourceSingletons, isProviderClass, isRootResourceClass, setPropertiesAndFeatures, validate

 

Constructor Detail

DefaultResourceConfig

public DefaultResourceConfig()
Default constructor.

DefaultResourceConfig

public DefaultResourceConfig(java.lang.String[] asPackages)
Construct an instance of ResourceConfig that initialize Coherence predefined properties and searches for root resource classes and providers in the specified packages.
Parameters:
asPackages - an array of package names to be scanned for root resource classes and providers. If null or an empty array is provided, the Coherence predefined root resource and providers will be used.

Method Detail

toString

public java.lang.String toString()

registerRootResource

protected void registerRootResource()
Register the default Coherence REST root resource class.

registerProviders

protected void registerProviders()
Register the default Coherence REST providers.

registerContainerRequestFilters

protected void registerContainerRequestFilters()
Register the predefined Coherence REST container request filters.

registerContainerResponseFilters

protected void registerContainerResponseFilters()
Register the predefined Coherence REST container response filters.

registerResourceFilterFactories

protected void registerResourceFilterFactories()
Register the predefined Coherence REST resource filter factories.

getExtensionsMap

protected static java.util.Map getExtensionsMap()
Construct a map with URL suffix to media type mappings.

Supported values are ".txt", ".html", ".xml", ".json".

Returns:
URL suffix to media type mappings

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.