Interface PluginsRegistry


  • public interface PluginsRegistry
    Author:
    Andrea Di Cesare <andrea@softinstigate.com>
    • Method Detail

      • getGlobalSecurityPredicates

        Set<io.undertow.predicate.Predicate> getGlobalSecurityPredicates()
        global security predicates must all resolve to true to allow the request
        Returns:
        the globalSecurityPredicates allow to get and set the global security predicates to apply to all requests
      • getRootPathHandler

        io.undertow.server.handlers.PathHandler getRootPathHandler()
        Gets the RESTHeart root handler Avoid adding handlers using PathHandler.addPrefixPath() or PathHandler.addExactPath(). Instead use PluginsRegistry.plug() which sets also the correct PipelineInfo
        Returns:
        the RESTHeart root handler
      • plugPipeline

        void plugPipeline​(String path,
                          PipelinedHandler handler,
                          PipelineInfo info)
        Plugs a pipeline into the root handler binding it to the path; also sets its PipelineInfo.
        Parameters:
        path - If the request contains this path, run the pipeline
        handler - The handler which is activated upon match
        info - The PipelineInfo describing the handling pipeline
      • getPipelineInfo

        PipelineInfo getPipelineInfo​(String path)
        Parameters:
        path -
        Returns:
        the PipelineInfo of the pipeline handling the request