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"
10 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 #endif /* ACE_LACKS_PRAGMA_ONCE */
16 #pragma warning(disable:4250)
19 class Echo_Server_Request_Interceptor
20 : public virtual PortableInterceptor::ServerRequestInterceptor
,
21 public virtual ::CORBA::LocalObject
23 // = Server-side echo interceptor. For checking interceptor visually only.
25 Echo_Server_Request_Interceptor ();
28 Echo_Server_Request_Interceptor (CORBA::Object_ptr forward_location
);
30 ~Echo_Server_Request_Interceptor ();
33 void forward_reference (CORBA::Object_ptr forward_location
);
35 virtual char * name ();
36 // Canonical name of the interceptor.
38 virtual void destroy ();
40 virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri
);
42 virtual void receive_request_service_contexts (
43 PortableInterceptor::ServerRequestInfo_ptr
);
45 virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri
);
47 virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri
);
49 virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri
);
51 bool forward_location_done() const;
54 CORBA::Object_var forward_location_
;
55 bool forward_location_done_
;
62 #endif /* TAO_SERVER_INTERCEPTOR_H */