2 #ifndef TAO_SERVER_INTERCEPTOR_H
3 #define TAO_SERVER_INTERCEPTOR_H
5 #include "tao/PI_Server/PI_Server.h"
6 #include "tao/PortableInterceptorC.h"
7 #include "tao/PortableServer/POAC.h"
8 #include "tao/LocalObject.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
17 #pragma warning(disable:4250)
20 /// Server-side echo interceptor. For checking interceptor visually only.
21 class Ping_Death_Request_Interceptor
22 : public virtual PortableInterceptor::ServerRequestInterceptor
,
23 public virtual ::CORBA::LocalObject
27 Ping_Death_Request_Interceptor (int *counter
);
30 ~Ping_Death_Request_Interceptor ();
31 void set_poa (PortableServer::POA_ptr poa
);
33 // Canonical name of the interceptor.
34 virtual char * name ();
36 virtual void destroy ();
38 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
);
40 virtual void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr
);
42 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
);
44 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
);
46 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr
);
51 PortableServer::POA_var poa_
;
58 #endif /* TAO_SERVER_INTERCEPTOR_H */