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.IInvoker
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    callHooks(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)
     
    boolean
    hasHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut)
     
    static ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
    newCompositeBroadcaster(ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster... theServices)
     
    static ca.uhn.fhir.interceptor.api.IInterceptorBroadcaster
    newCompositeBroadcaster(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, wait

    Methods inherited from interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster

    ifHasCallHooks, ifHasCallHooksAndReturnObject
  • Method Details

    • callHooks

      public boolean callHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut, ca.uhn.fhir.interceptor.api.HookParams theParams)
      Specified by:
      callHooks in interface ca.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:
      callHooksAndReturnObject in interface ca.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:
      getInvokersForPointcut in interface ca.uhn.fhir.interceptor.api.IBaseInterceptorBroadcaster<ca.uhn.fhir.interceptor.api.Pointcut>
    • hasHooks

      public boolean hasHooks(ca.uhn.fhir.interceptor.api.Pointcut thePointcut)
      Specified by:
      hasHooks in interface ca.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