Package org.restheart.plugins
Class PluginsRegistryImpl
java.lang.Object
org.restheart.plugins.PluginsRegistryImpl
- All Implemented Interfaces:
PluginsRegistry
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(PluginRecord<Interceptor<?, ?>> i) getAuthenticator(String name) static PluginsRegistryImplSet<PluginRecord<Interceptor<?, ?>>> note, this is cached to speed up requestsCan be used by some authenticators to allowo modifyign the permissions with custom logicgetPipelineInfo(String path) Set<PluginRecord<Provider<?>>> List<Interceptor<?, ?>> getProxyInterceptors(InterceptPoint interceptPoint) io.undertow.server.handlers.PathHandlerList<Interceptor<?, ?>> getServiceInterceptors(Service<?, ?> srv, InterceptPoint interceptPoint) Set<PluginRecord<Service<?, ?>>> voidforce plugin objects instantiationvoidplugPipeline(String path, PipelinedHandler handler, PipelineInfo info) voidplugService(PluginRecord<Service<?, ?>> srv, String uri, RegisterPlugin.MATCH_POLICY mp, boolean secured) booleanremoveInterceptorIf(Predicate<? super PluginRecord<Interceptor<?, ?>>> filter) voidunplug(String uri, RegisterPlugin.MATCH_POLICY mp) unplugs an handler from the root handler
-
Method Details
-
getInstance
-
instantiateAll
public void instantiateAll()force plugin objects instantiation -
getAuthMechanisms
- Specified by:
getAuthMechanismsin interfacePluginsRegistry- Returns:
- the authMechanisms
-
getAuthenticators
- Specified by:
getAuthenticatorsin interfacePluginsRegistry- Returns:
- the authenticators
-
getAuthenticator
- Specified by:
getAuthenticatorin interfacePluginsRegistry- Parameters:
name- the name of the authenticator- Returns:
- the authenticator
- Throws:
ConfigurationException
-
getPermissionTransformers
Can be used by some authenticators to allowo modifyign the permissions with custom logic- Specified by:
getPermissionTransformersin interfacePluginsRegistry- Returns:
- the permission transformers
-
getTokenManager
- Specified by:
getTokenManagerin interfacePluginsRegistry- Returns:
- the authenticators
-
getAuthorizers
- Specified by:
getAuthorizersin interfacePluginsRegistry- Returns:
- the authenticators
-
getInitializers
- Specified by:
getInitializersin interfacePluginsRegistry- Returns:
- the initializers
-
getInterceptors
note, this is cached to speed up requests- Specified by:
getInterceptorsin interfacePluginsRegistry- Returns:
- the interceptors
-
getProviders
- Specified by:
getProvidersin interfacePluginsRegistry- Returns:
- the authenticators
-
addInterceptor
- Specified by:
addInterceptorin interfacePluginsRegistry
-
removeInterceptorIf
- Specified by:
removeInterceptorIfin interfacePluginsRegistry
-
getServiceInterceptors
public List<Interceptor<?,?>> getServiceInterceptors(Service<?, ?> srv, InterceptPoint interceptPoint) - Specified by:
getServiceInterceptorsin interfacePluginsRegistry- Parameters:
srv-interceptPoint-- Returns:
- the interceptors of the service srv
-
getProxyInterceptors
- Specified by:
getProxyInterceptorsin interfacePluginsRegistry- Parameters:
interceptPoint-- Returns:
- the interceptors of the proxy
-
getServices
- Specified by:
getServicesin interfacePluginsRegistry- Returns:
- the services
-
getRootPathHandler
public io.undertow.server.handlers.PathHandler getRootPathHandler()- Specified by:
getRootPathHandlerin interfacePluginsRegistry
-
plugPipeline
- Specified by:
plugPipelinein interfacePluginsRegistry
-
getPipelineInfo
- Specified by:
getPipelineInfoin interfacePluginsRegistry
-
plugService
public void plugService(PluginRecord<Service<?, ?>> srv, String uri, RegisterPlugin.MATCH_POLICY mp, boolean secured) - Specified by:
plugServicein interfacePluginsRegistry
-
unplug
unplugs an handler from the root handler- Specified by:
unplugin interfacePluginsRegistry- Parameters:
uri-mp-
-