Class InterceptorInvoker

java.lang.Object
com.sun.corba.ee.impl.interceptors.InterceptorInvoker

public class InterceptorInvoker extends Object
Handles invocation of interceptors. Has specific knowledge of how to invoke IOR, ClientRequest, and ServerRequest interceptors. Makes use of the InterceptorList to retrieve the list of interceptors to be invoked. Most methods in this class are package scope so that they may only be called from the PIHandlerImpl.
  • Field Details

  • Constructor Details

    • InterceptorInvoker

      InterceptorInvoker(ORB orb, InterceptorList interceptorList, PICurrent piCurrent)
      Creates a new Interceptor Invoker. Constructor is package scope so only the ORB can create it. The invoker is initially disabled, and must be explicitly enabled using setEnabled().
  • Method Details

    • setEnabled

      void setEnabled(boolean enabled)
      Enables or disables the interceptor invoker
    • getEnabled

      boolean getEnabled()
    • objectAdapterCreated

      void objectAdapterCreated(ObjectAdapter oa)
      Called when a new POA is created.
      Parameters:
      oa - The Object Adapter associated with the IOR interceptor.
    • adapterManagerStateChanged

      void adapterManagerStateChanged(int managerId, short newState)
    • adapterStateChanged

      void adapterStateChanged(ObjectReferenceTemplate[] templates, short newState)
    • invokeClientStartingCall

      @InfoMethod private void invokeClientStartingCall(String name)
    • invokeClientStartingForwardRequest

      @InfoMethod private void invokeClientStartingForwardRequest(String name)
    • invokeClientStartingSystemException

      @InfoMethod private void invokeClientStartingSystemException(String name, SystemException exc)
    • invokeClientInterceptorStartingPoint

      void invokeClientInterceptorStartingPoint(ClientRequestInfoImpl info)
      Invokes either send_request, or send_poll, depending on the value of info.getStartingPointCall()
    • getClientEndMethodName

      private String getClientEndMethodName(int endingPointCall)
    • invokeClientEndingCall

      @InfoMethod private void invokeClientEndingCall(String name, String call)
    • invokeClientEndingForwardRequest

      @InfoMethod private void invokeClientEndingForwardRequest(String name)
    • invokeClientEndingSystemException

      @InfoMethod private void invokeClientEndingSystemException(String name, SystemException exc)
    • invokeClientInterceptorEndingPoint

      void invokeClientInterceptorEndingPoint(ClientRequestInfoImpl info)
      Invokes either receive_reply, receive_exception, or receive_other, depending on the value of info.getEndingPointCall()
    • invokeServerStartingCall

      @InfoMethod private void invokeServerStartingCall(String name)
    • invokeServerStartingForwardRequest

      @InfoMethod private void invokeServerStartingForwardRequest(String name)
    • invokeServerStartingSystemException

      @InfoMethod private void invokeServerStartingSystemException(String name, SystemException exc)
    • invokeServerInterceptorStartingPoint

      void invokeServerInterceptorStartingPoint(ServerRequestInfoImpl info)
      Invokes receive_request_service_context interception points.
    • invokeServerIntermediateCall

      @InfoMethod private void invokeServerIntermediateCall(String name)
    • invokeServerIntermediateForwardRequest

      @InfoMethod private void invokeServerIntermediateForwardRequest(String name)
    • invokeServerIntermediateSystemException

      @InfoMethod private void invokeServerIntermediateSystemException(String name, SystemException exc)
    • invokeServerInterceptorIntermediatePoint

      void invokeServerInterceptorIntermediatePoint(ServerRequestInfoImpl info)
      Invokes receive_request interception points
    • getServerEndMethodName

      private String getServerEndMethodName(int endingPointCall)
    • serverInvokeEndingPoint

      @InfoMethod private void serverInvokeEndingPoint(String name, String call)
    • caughtForwardRequest

      @InfoMethod private void caughtForwardRequest(String name)
    • caughtSystemException

      @InfoMethod private void caughtSystemException(String name, SystemException ex)
    • invokeServerInterceptorEndingPoint

      void invokeServerInterceptorEndingPoint(ServerRequestInfoImpl info)
      Invokes either send_reply, send_exception, or send_other, depending on the value of info.getEndingPointCall()
    • updateClientRequestDispatcherForward

      private void updateClientRequestDispatcherForward(ClientRequestInfoImpl info)
      Update the client delegate in the event of a ForwardRequest, given the information in the passed-in info object.