Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Bug_3216_Regression / ServerRequest_Interceptor.h
blobaa0aee92ea5aa316b085f4abc9fece84da7024ce
1 // -*- C++ -*-
3 //=============================================================================
4 //=============================================================================
6 #ifndef TAO249_SERVER_REQUEST_INTERCEPTOR_H
7 #define TAO249_SERVER_REQUEST_INTERCEPTOR_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"
20 class TAO249_ServerRequest_Interceptor
21 : public virtual PortableInterceptor::ServerRequestInterceptor,
22 public virtual ::CORBA::LocalObject
24 public:
26 /// Constructor.
27 TAO249_ServerRequest_Interceptor (void);
29 /// Destructor.
30 ~TAO249_ServerRequest_Interceptor (void);
32 /**
33 * @name Methods Required by the Server Request Interceptor
34 * Interface
36 * These are methods that must be implemented since they are pure
37 * virtual in the abstract base class. They are the canonical
38 * methods required for all server request interceptors.
40 //@{
41 /// Return the name of this ServerRequestinterceptor.
42 virtual char * name ();
44 virtual void destroy ();
46 virtual void receive_request_service_contexts (
47 PortableInterceptor::ServerRequestInfo_ptr ri
50 virtual void receive_request (
51 PortableInterceptor::ServerRequestInfo_ptr ri
54 virtual void send_reply (
55 PortableInterceptor::ServerRequestInfo_ptr ri
58 virtual void send_exception (
59 PortableInterceptor::ServerRequestInfo_ptr ri
62 virtual void send_other (
63 PortableInterceptor::ServerRequestInfo_ptr ri
65 //@}
66 private:
68 CORBA::ORB_var orb_;
70 CORBA:: Long client_id_;
73 #endif /* TAO249_SERVER_REQUEST_INTERCEPTOR_H */