Class DefaultRootResource

  • Direct Known Subclasses:
    PassThroughRootResource

    @Path("/")
    public class DefaultRootResource
    extends 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
    • Field Detail

      • m_session

        @Inject
        protected Session m_session
        Coherence session.
      • m_config

        @Inject
        protected RestConfig m_config
        REST configuration.
      • m_serviceLocator

        @Inject
        protected org.glassfish.hk2.api.ServiceLocator m_serviceLocator
    • Constructor Detail

      • DefaultRootResource

        public DefaultRootResource()