Skip navigation links

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

E47890-01


com.tangosol.coherence.rest
Class DefaultRootResource

java.lang.Object
  extended by com.tangosol.coherence.rest.DefaultRootResource


public class DefaultRootResource
extends java.lang.Object

Default root resource implementation.

This class can be replaced by a custom implementation if the user wants to have more control over the mapping of URLs to caches.

This implementation simply maps the first path element of the URL to a resource with the same name (as defined in coherence-rest-config.xml) and returns a CacheResource wrapper around it.

If the cache with a specified name does not exist, a 404 (Not Found) status code will be returned in the response.

Author:
as 2011.06.03

Constructor Summary
DefaultRootResource()
           

 

Method Summary
 CacheResource getCacheResource(java.lang.String sName)
          Returns a resource representing single named cache.

 

Constructor Detail

DefaultRootResource

public DefaultRootResource()

Method Detail

getCacheResource

public CacheResource getCacheResource(java.lang.String sName)
Returns a resource representing single named cache.
Parameters:
sName - resource name
Returns:
resource representing single named cache

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.