Interface PluginsRegistry


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

    • getAuthMechanisms

      Set<PluginRecord<AuthMechanism>> getAuthMechanisms()
      Returns:
      the authMechanisms
    • getAuthenticators

      Set<PluginRecord<Authenticator>> getAuthenticators()
      Returns:
      the authenticators
    • getAuthenticator

      PluginRecord<Authenticator> getAuthenticator(String name) throws ConfigurationException
      Parameters:
      name - the name of the authenticator
      Returns:
      the authenticator
      Throws:
      ConfigurationException
    • getTokenManager

      PluginRecord<TokenManager> getTokenManager()
      Returns:
      the authenticators
    • getAuthorizers

      Set<PluginRecord<Authorizer>> getAuthorizers()
      Returns:
      the authenticators
    • getPermissionTransformers

      Set<BaseAclPermissionTransformer> getPermissionTransformers()
      Returns:
      the permission transformers
    • getInitializers

      Set<PluginRecord<Initializer>> getInitializers()
      Returns:
      the initializers
    • getProviders

      Set<PluginRecord<Provider<?>>> getProviders()
      Returns:
      the providers
    • addInterceptor

      void addInterceptor(PluginRecord<Interceptor<?,?>> i)
      Parameters:
      i -
    • removeInterceptorIf

      boolean removeInterceptorIf(Predicate<? super PluginRecord<Interceptor<?,?>>> filter)
      Parameters:
      filter -
      Returns:
      remove all interceptors that match the filter predicate
    • getServices

      Set<PluginRecord<Service<?,?>>> getServices()
      Returns:
      the services
    • getInterceptors

      Set<PluginRecord<Interceptor<?,?>>> getInterceptors()
    • getServiceInterceptors

      List<Interceptor<?,?>> getServiceInterceptors(Service<?,?> srv, InterceptPoint interceptPoint)
      Parameters:
      srv -
      interceptPoint -
      Returns:
      the interceptors of the service srv
    • getProxyInterceptors

      List<Interceptor<?,?>> getProxyInterceptors(InterceptPoint interceptPoint)
      Parameters:
      interceptPoint -
      Returns:
      the interceptors of the proxy
    • 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
    • unplug

      void unplug(String uri, RegisterPlugin.MATCH_POLICY mp)
      unplugs an handler from the root handler
      Parameters:
      uri -
      mp -
    • plugService

      void plugService(PluginRecord<Service<? extends ServiceRequest<?>,? extends ServiceResponse<?>>> srv, String uri, RegisterPlugin.MATCH_POLICY mp, boolean secured)
      Plugs a service into the root handler binding it to the path
      Parameters:
      srv - The service to plug
      uri - The URI to bind the service to
      mp - The match policy, either exact or prefix
      secured - true to invoke the service only after authentication and authorization succeed
    • getPipelineInfo

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