Class 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 Detail

      • RestletApplication

        public RestletApplication​(org.restlet.Context parentContext)
    • Method Detail

      • 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​(java.util.Map<java.lang.String,​java.lang.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​(java.util.Map<java.lang.String,​java.lang.Class<? extends JcmsRestResource>> map)
        Detaches the given map of JcmsRestResources.
        Parameters:
        map - a map of JcmsRestResources.
        Since:
        jcms-10.0.1
      • getStandardResourcesMap

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