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"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
15 #pragma warning(disable:4250)
18 class ForwardTest_Request_Interceptor
19 : public virtual PortableInterceptor::ServerRequestInterceptor
22 // = Server-side echo interceptor. For checking interceptor visually only.
24 ForwardTest_Request_Interceptor ();
27 ForwardTest_Request_Interceptor (CORBA::Object_ptr forward_location
);
29 ~ForwardTest_Request_Interceptor ();
32 void forward_reference (CORBA::Object_ptr forward_location
);
34 virtual char * name ();
35 // Canonical name of the interceptor.
37 virtual void destroy ();
39 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
);
41 virtual void receive_request_service_contexts (
42 PortableInterceptor::ServerRequestInfo_ptr
);
44 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
);
46 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
);
48 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri
);
50 bool forward_location_done() const;
53 CORBA::Object_var forward_location_
;
54 bool forward_location_done_
;
61 #endif /* TAO_SERVER_INTERCEPTOR_H */