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