2 #ifndef TAO_INTERCEPTORS_H
3 #define TAO_INTERCEPTORS_H
4 #include /**/ "ace/pre.h"
8 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 #endif /* ACE_LACKS_PRAGMA_ONCE */
12 #include "tao/PI_Server/PI_Server.h"
13 #include "tao/PortableInterceptorC.h"
14 #include "tao/LocalObject.h"
18 #pragma warning(disable:4250)
21 class Echo_Client_Request_Interceptor
22 : public virtual PortableInterceptor::ClientRequestInterceptor
,
23 public virtual ::CORBA::LocalObject
25 // = Client-side echo interceptor. For checking interceptor visually only.
27 Echo_Client_Request_Interceptor ();
29 virtual ~Echo_Client_Request_Interceptor ();
32 virtual char * name ();
33 // Canonical name of the interceptor.
35 virtual void destroy ();
37 virtual void send_poll (
38 PortableInterceptor::ClientRequestInfo_ptr
);
40 virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri
);
42 virtual void receive_other (
43 PortableInterceptor::ClientRequestInfo_ptr
);
45 virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri
);
47 virtual void receive_exception (
48 PortableInterceptor::ClientRequestInfo_ptr ri
);
50 // Some identifiers that are used for error checking
51 static CORBA::ULong client_interceptor_check_
;
56 class Echo_Server_Request_Interceptor
57 : public PortableInterceptor::ServerRequestInterceptor
,
58 public virtual ::CORBA::LocalObject
60 // = Server-side echo interceptor. For checking interceptor visually only.
62 Echo_Server_Request_Interceptor ();
64 ~Echo_Server_Request_Interceptor ();
67 virtual char * name ();
68 // Canonical name of the interceptor.
70 virtual void destroy ();
72 virtual void receive_request_service_contexts (
73 PortableInterceptor::ServerRequestInfo_ptr
);
75 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
);
77 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
);
79 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
);
81 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr
);
83 // Some identifiers that are used for error checking
84 static CORBA::ULong server_interceptor_check_
;
94 #include /**/ "ace/post.h"
95 #endif /* TAO_INTERCEPTORS_H */