
Package ca.uhn.fhir.rest.server.util
Class CompositeInterceptorBroadcaster
java.lang.Object
ca.uhn.fhir.rest.server.util.CompositeInterceptorBroadcaster
- All Implemented Interfaces:
ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>,ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
public class CompositeInterceptorBroadcaster
extends Object
implements ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
This is an
IInterceptorBroadcaster which combines multiple interceptor
broadcasters. Hook methods are called across all broadcasters, respecting
the Hook.order() across all broadcasters.-
Nested Class Summary
Nested classes/interfaces inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster
ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster.IInterceptorFilterHook, ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster.IInvoker -
Method Summary
Modifier and TypeMethodDescriptionbooleancallHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theParams) callHooksAndReturnObject(ca.uhn.fhir.interceptor.api.Pointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theParams) List<ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster.IInvoker> getInvokersForPointcut(ca.uhn.fhir.interceptor.api.Pointcut thePointcut) booleanhasHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut) static ca.uhn.fhir.interceptor.api.IInterceptorBroadcasternewCompositeBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster... theServices) static ca.uhn.fhir.interceptor.api.IInterceptorBroadcasternewCompositeBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, RequestDetails theRequestDetails) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster
ifHasCallHooks, ifHasCallHooksAndReturnObject, runWithFilterHooks, runWithFilterHooks
-
Method Details
-
callHooks
public boolean callHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theParams) - Specified by:
callHooksin interfaceca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>
-
callHooksAndReturnObject
public Object callHooksAndReturnObject(ca.uhn.fhir.interceptor.api.Pointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theParams) - Specified by:
callHooksAndReturnObjectin interfaceca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>
-
getInvokersForPointcut
@Nonnull public List<ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster.IInvoker> getInvokersForPointcut(ca.uhn.fhir.interceptor.api.Pointcut thePointcut) - Specified by:
getInvokersForPointcutin interfaceca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>
-
hasHooks
- Specified by:
hasHooksin interfaceca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>
-
newCompositeBroadcaster
public static ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster newCompositeBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster... theServices) - Since:
- 8.0.0
-
newCompositeBroadcaster
public static ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster newCompositeBroadcaster(@Nonnull ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster theInterceptorBroadcaster, @Nullable RequestDetails theRequestDetails) - Since:
- 5.5.0
-