Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / DII_AMI_Forward / server_interceptor.h
blobd862fcabdbf30a67f6509b49ddfd9e2990eb2006
1 // -*- C++ -*-
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/ORB.h"
9 #if !defined (ACE_LACKS_PRAGMA_ONCE)
10 # pragma once
11 #endif /* ACE_LACKS_PRAGMA_ONCE */
13 #if defined(_MSC_VER)
14 #pragma warning(push)
15 #pragma warning(disable:4250)
16 #endif /* _MSC_VER */
18 class ForwardTest_Request_Interceptor
19 : public virtual PortableInterceptor::ServerRequestInterceptor
22 // = Server-side echo interceptor. For checking interceptor visually only.
23 public:
24 ForwardTest_Request_Interceptor ();
25 // cotr.
27 ForwardTest_Request_Interceptor (CORBA::Object_ptr forward_location);
29 ~ForwardTest_Request_Interceptor ();
30 // dotr.
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;
51 private:
52 const char *myname_;
53 CORBA::Object_var forward_location_;
54 bool forward_location_done_;
57 #if defined(_MSC_VER)
58 #pragma warning(pop)
59 #endif /* _MSC_VER */
61 #endif /* TAO_SERVER_INTERCEPTOR_H */