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/LocalObject.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #pragma warning(disable:4250)
18 /// Server-side echo interceptor. For checking interceptor visually only.
19 class Echo_Server_Request_Interceptor
20 : public PortableInterceptor::ServerRequestInterceptor
,
21 public virtual ::CORBA::LocalObject
24 Echo_Server_Request_Interceptor (int& result
);
26 // Canonical name of the interceptor.
27 char * name () override
;
29 void destroy () override
;
31 void receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr
) override
;
33 void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
) override
;
35 void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
) override
;
37 void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
) override
;
39 void send_other (PortableInterceptor::ServerRequestInfo_ptr
) override
;
42 ~Echo_Server_Request_Interceptor () override
= default;
52 #endif /* TAO_SERVER_INTERCEPTOR_H */