Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_3215_Regression / ServerRequest_Interceptor2.h
blob22e5cc5d3a7c9e82d49e6a7bbed81a754e226e4b
1 // -*- C++ -*-
3 //=============================================================================
4 //=============================================================================
6 #ifndef TAO249_SERVER_REQUEST_INTERCEPTOR2_H
7 #define TAO249_SERVER_REQUEST_INTERCEPTOR2_H
9 #include "ace/config-all.h"
11 #if !defined (ACE_LACKS_PRAGMA_ONCE)
12 # pragma once
13 #endif /* ACE_LACKS_PRAGMA_ONCE */
14 #include "tao/LocalObject.h"
15 #include "tao/PortableInterceptorC.h"
16 #include "tao/ORB.h"
17 #include "tao/PI/PI.h"
18 #include "tao/PI_Server/PI_Server.h"
19 #include "tao/TimeBaseC.h"
21 class TAO249_ServerRequest_Interceptor2
22 : public virtual PortableInterceptor::ServerRequestInterceptor,
23 public virtual ::CORBA::LocalObject
25 public:
27 /// Constructor.
28 TAO249_ServerRequest_Interceptor2 (void);
30 /// Destructor.
31 ~TAO249_ServerRequest_Interceptor2 (void);
33 /**
34 * @name Methods Required by the Server Request Interceptor
35 * Interface
37 * These are methods that must be implemented since they are pure
38 * virtual in the abstract base class. They are the canonical
39 * methods required for all server request interceptors.
41 //@{
42 /// Return the name of this ServerRequestinterceptor.
43 virtual char * name ();
45 virtual void destroy ();
47 virtual void receive_request_service_contexts (
48 PortableInterceptor::ServerRequestInfo_ptr ri
51 virtual void receive_request (
52 PortableInterceptor::ServerRequestInfo_ptr ri
55 virtual void send_reply (
56 PortableInterceptor::ServerRequestInfo_ptr ri
59 virtual void send_exception (
60 PortableInterceptor::ServerRequestInfo_ptr ri
63 virtual void send_other (
64 PortableInterceptor::ServerRequestInfo_ptr ri
66 //@}
68 CORBA::Object_var server_iogr_;
70 protected:
71 TimeBase::TimeT get_now (void);
73 private:
75 CORBA::ORB_var orb_;
77 CORBA::Boolean expired_;
80 #endif /* TAO249_SERVER_REQUEST_INTERCEPTOR2_H */