Class CoreConfigImpl

    • Constructor Detail

      • CoreConfigImpl

        public CoreConfigImpl()
    • Method Detail

      • getErrorpage

        public org.apache.sling.api.resource.Resource getErrorpage​(org.apache.sling.api.SlingHttpServletRequest request,
                                                                   int status)
        Determines the error page corresponding to the requested path. Is searching upwards beginning with the requested path for an error page using the path pattern: {requested path}/{errorpagesPath}/{status code}. If nothing found the pattern: {defaultErrorpages}/{status code} is used if existing.
        Specified by:
        getErrorpage in interface CoreConfiguration
        Returns:
        the error page found; null if no error page available
      • forwardToErrorpage

        public boolean forwardToErrorpage​(org.apache.sling.api.SlingHttpServletRequest request,
                                          org.apache.sling.api.SlingHttpServletResponse response,
                                          int status)
                                   throws javax.servlet.ServletException,
                                          IOException
        Specified by:
        forwardToErrorpage in interface CoreConfiguration
        Throws:
        javax.servlet.ServletException
        IOException
      • getProperties

        @NotNull
        public @NotNull Dictionary<String,​Object> getProperties()
        Description copied from interface: CoreConfiguration
        The (readonly) properties useable for extensions. E.g. introduce a new property in a newer nodes version, and use it if accessible already when depending on an older nodes version.
        Specified by:
        getProperties in interface CoreConfiguration
      • deactivate

        protected void deactivate()