Class NodeServlet

    • Constructor Detail

      • NodeServlet

        public NodeServlet()
    • Method Detail

      • bindFilterConfiguration

        protected void bindFilterConfiguration​(FilterConfiguration config)
        for each configured filter in the OSGi configuration a tree filter is added to the filter set
        Parameters:
        config - the OSGi filter configuration object
      • unbindFilterConfiguration

        protected void unbindFilterConfiguration​(FilterConfiguration config)
        removing of a configuration which is not longer available; removes the corresponding tree filter also
        Parameters:
        config - the OSGi filter configuration object to remove
      • activate

        protected void activate()
      • buildTreeFilter

        protected ResourceFilter buildTreeFilter​(ResourceFilter configuredFilter)
        Creates a 'tree filter' as combination with the configured filter and the rules for the 'intermediate' nodes (folders) to traverse up to the target nodes.
        Parameters:
        configuredFilter - the filter for the target nodes
      • getNodeFilter

        protected ResourceFilter getNodeFilter​(org.apache.sling.api.SlingHttpServletRequest request)
        Determines the filter to use for node retrieval; scans the request for filter parameter or selector.
        Specified by:
        getNodeFilter in class NodeTreeServlet
      • checkNodeName

        protected boolean checkNodeName​(@Nullable
                                        @Nullable String name)
      • checkNodePath

        protected boolean checkNodePath​(@Nullable
                                        @Nullable String path)
      • init

        public void init()
                  throws javax.servlet.ServletException
        setup of the servlet operation set for this servlet instance
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • getJsonSelectorRules

        public static MappingRules getJsonSelectorRules​(org.apache.sling.api.SlingHttpServletRequest request)
      • getJsonSelectorIndent

        public static int getJsonSelectorIndent​(org.apache.sling.api.SlingHttpServletRequest request)