Class RestletApplication

java.lang.Object
org.restlet.Uniform
org.restlet.Restlet
org.restlet.Application
com.jalios.jcms.rest.RestletApplication
All Implemented Interfaces:
RestConstants

public class RestletApplication extends org.restlet.Application implements RestConstants
This implementation of a Restlet Application is the initialisation of the Restlet engine. In other things, it maps URI to Resources.
Since:
JCMS-6.0
Author:
dissert
  • Constructor Details

    • RestletApplication

      public RestletApplication(org.restlet.Context parentContext)
  • Method Details

    • createRoot

      public org.restlet.Restlet createRoot()
      Creates a root Restlet that will receive all incoming calls.
      Specified by:
      createRoot in class org.restlet.Application
    • attachResources

      public void attachResources(Map<String,Class<? extends JcmsRestResource>> map)
      Attaches the given map of JcmsRestResources.
      Parameters:
      map - a map of JcmsRestResources.
      Since:
      jcms-10.0.1
    • detachResources

      public void detachResources(Map<String,Class<? extends JcmsRestResource>> map)
      Detaches the given map of JcmsRestResources.
      Parameters:
      map - a map of JcmsRestResources.
      Since:
      jcms-10.0.1
    • getStandardResourcesMap

      public static Map<String,Class<? extends org.restlet.resource.Resource>> getStandardResourcesMap()