Class InterceptorInvoker


  • public class InterceptorInvoker
    extends java.lang.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.
    • Constructor Detail

      • 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 Detail

      • 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)
      • invokeClientStartingCall

        @InfoMethod
        private void invokeClientStartingCall​(java.lang.String name)
      • invokeClientStartingForwardRequest

        @InfoMethod
        private void invokeClientStartingForwardRequest​(java.lang.String name)
      • invokeClientStartingSystemException

        @InfoMethod
        private void invokeClientStartingSystemException​(java.lang.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 java.lang.String getClientEndMethodName​(int endingPointCall)
      • invokeClientEndingCall

        @InfoMethod
        private void invokeClientEndingCall​(java.lang.String name,
                                            java.lang.String call)
      • invokeClientEndingForwardRequest

        @InfoMethod
        private void invokeClientEndingForwardRequest​(java.lang.String name)
      • invokeClientEndingSystemException

        @InfoMethod
        private void invokeClientEndingSystemException​(java.lang.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​(java.lang.String name)
      • invokeServerStartingForwardRequest

        @InfoMethod
        private void invokeServerStartingForwardRequest​(java.lang.String name)
      • invokeServerStartingSystemException

        @InfoMethod
        private void invokeServerStartingSystemException​(java.lang.String name,
                                                         SystemException exc)
      • invokeServerInterceptorStartingPoint

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

        @InfoMethod
        private void invokeServerIntermediateCall​(java.lang.String name)
      • invokeServerIntermediateForwardRequest

        @InfoMethod
        private void invokeServerIntermediateForwardRequest​(java.lang.String name)
      • invokeServerIntermediateSystemException

        @InfoMethod
        private void invokeServerIntermediateSystemException​(java.lang.String name,
                                                             SystemException exc)
      • invokeServerInterceptorIntermediatePoint

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

        private java.lang.String getServerEndMethodName​(int endingPointCall)
      • serverInvokeEndingPoint

        @InfoMethod
        private void serverInvokeEndingPoint​(java.lang.String name,
                                             java.lang.String call)
      • caughtForwardRequest

        @InfoMethod
        private void caughtForwardRequest​(java.lang.String name)
      • caughtSystemException

        @InfoMethod
        private void caughtSystemException​(java.lang.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.