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 PICurrentprivate booleanprivate InterceptorListprivate ORBprivate static final InterceptorsSystemException -
Constructor Summary
ConstructorsConstructorDescriptionInterceptorInvoker(ORB orb, InterceptorList interceptorList, PICurrent piCurrent) Creates a new Interceptor Invoker. -
Method Summary
Modifier and TypeMethodDescription(package private) voidadapterManagerStateChanged(int managerId, short newState) (package private) voidadapterStateChanged(ObjectReferenceTemplate[] templates, short newState) private voidcaughtForwardRequest(String name) private voidcaughtSystemException(String name, SystemException ex) private StringgetClientEndMethodName(int endingPointCall) (package private) booleanprivate StringgetServerEndMethodName(int endingPointCall) private voidinvokeClientEndingCall(String name, String call) private voidprivate void(package private) voidInvokes either receive_reply, receive_exception, or receive_other, depending on the value of info.getEndingPointCall()(package private) voidInvokes either send_request, or send_poll, depending on the value of info.getStartingPointCall()private voidprivate voidprivate void(package private) voidInvokes either send_reply, send_exception, or send_other, depending on the value of info.getEndingPointCall()(package private) voidInvokes receive_request interception points(package private) voidInvokes receive_request_service_context interception points.private voidprivate voidprivate voidprivate voidprivate voidprivate void(package private) voidCalled when a new POA is created.private voidserverInvokeEndingPoint(String name, String call) (package private) voidsetEnabled(boolean enabled) Enables or disables the interceptor invokerprivate voidUpdate 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.
-