3 //=============================================================================
5 * @file Server_Request_Interceptor.h
7 * Implementation header for the server request interceptor for the
8 * PortableInterceptor / ServantLocator test.
10 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
12 //=============================================================================
14 #ifndef SERVER_REQUEST_INTERCEPTOR_H
15 #define SERVER_REQUEST_INTERCEPTOR_H
17 #include "ace/config-all.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI_Server/PI_Server.h"
24 #include "tao/LocalObject.h"
28 #pragma warning(disable:4250)
32 * @class Server_Request_Interceptor
34 * @brief Simple concrete server request interceptor.
36 * This server request interceptor merely sets global flags when
37 * specific interception points are called. Those flags are checked
38 * at various points in the test.
40 class Server_Request_Interceptor
41 : public virtual PortableInterceptor::ServerRequestInterceptor
,
42 public virtual ::CORBA::LocalObject
47 Server_Request_Interceptor (void);
50 * @name Methods Required by the Server Request Interceptor
53 * These are methods that must be implemented since they are pure
54 * virtual in the abstract base class. They are the canonical
55 * methods required for all server request interceptors.
58 /// Return the name of this ServerRequestinterceptor.
59 virtual char * name (void);
61 virtual void destroy (void);
63 virtual void receive_request_service_contexts (
64 PortableInterceptor::ServerRequestInfo_ptr ri
);
66 virtual void receive_request (
67 PortableInterceptor::ServerRequestInfo_ptr ri
);
69 virtual void send_reply (
70 PortableInterceptor::ServerRequestInfo_ptr ri
);
72 virtual void send_exception (
73 PortableInterceptor::ServerRequestInfo_ptr ri
);
75 virtual void send_other (
76 PortableInterceptor::ServerRequestInfo_ptr ri
);
82 ~Server_Request_Interceptor (void);
90 #endif /* SERVER_REQUEST_INTERCEPTOR_H */