Class InterceptorInvoker
- java.lang.Object
-
- com.sun.corba.ee.impl.interceptors.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.
-
-
Field Summary
Fields Modifier and Type Field Description private PICurrent
current
private boolean
enabled
private InterceptorList
interceptorList
private ORB
orb
private static InterceptorsSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description InterceptorInvoker(ORB orb, InterceptorList interceptorList, PICurrent piCurrent)
Creates a new Interceptor Invoker.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
adapterManagerStateChanged(int managerId, short newState)
(package private) void
adapterStateChanged(ObjectReferenceTemplate[] templates, short newState)
private void
caughtForwardRequest(java.lang.String name)
private void
caughtSystemException(java.lang.String name, SystemException ex)
private java.lang.String
getClientEndMethodName(int endingPointCall)
(package private) boolean
getEnabled()
private java.lang.String
getServerEndMethodName(int endingPointCall)
private void
invokeClientEndingCall(java.lang.String name, java.lang.String call)
private void
invokeClientEndingForwardRequest(java.lang.String name)
private void
invokeClientEndingSystemException(java.lang.String name, SystemException exc)
(package private) void
invokeClientInterceptorEndingPoint(ClientRequestInfoImpl info)
Invokes either receive_reply, receive_exception, or receive_other, depending on the value of info.getEndingPointCall()(package private) void
invokeClientInterceptorStartingPoint(ClientRequestInfoImpl info)
Invokes either send_request, or send_poll, depending on the value of info.getStartingPointCall()private void
invokeClientStartingCall(java.lang.String name)
private void
invokeClientStartingForwardRequest(java.lang.String name)
private void
invokeClientStartingSystemException(java.lang.String name, SystemException exc)
(package private) void
invokeServerInterceptorEndingPoint(ServerRequestInfoImpl info)
Invokes either send_reply, send_exception, or send_other, depending on the value of info.getEndingPointCall()(package private) void
invokeServerInterceptorIntermediatePoint(ServerRequestInfoImpl info)
Invokes receive_request interception points(package private) void
invokeServerInterceptorStartingPoint(ServerRequestInfoImpl info)
Invokes receive_request_service_context interception points.private void
invokeServerIntermediateCall(java.lang.String name)
private void
invokeServerIntermediateForwardRequest(java.lang.String name)
private void
invokeServerIntermediateSystemException(java.lang.String name, SystemException exc)
private void
invokeServerStartingCall(java.lang.String name)
private void
invokeServerStartingForwardRequest(java.lang.String name)
private void
invokeServerStartingSystemException(java.lang.String name, SystemException exc)
(package private) void
objectAdapterCreated(ObjectAdapter oa)
Called when a new POA is created.private void
serverInvokeEndingPoint(java.lang.String name, java.lang.String call)
(package private) void
setEnabled(boolean enabled)
Enables or disables the interceptor invokerprivate void
updateClientRequestDispatcherForward(ClientRequestInfoImpl info)
Update the client delegate in the event of a ForwardRequest, given the information in the passed-in info object.
-
-
-
Field Detail
-
orb
private ORB orb
-
wrapper
private static final InterceptorsSystemException wrapper
-
interceptorList
private InterceptorList interceptorList
-
enabled
private boolean enabled
-
current
private PICurrent current
-
-
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)
-
adapterStateChanged
void adapterStateChanged(ObjectReferenceTemplate[] templates, 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.
-
-