3 // ===================================================================
5 * @file Service_Context_Handler.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 // ===================================================================
11 #ifndef TAO_SERVICE_CONTEXT_HANDLER_H
12 #define TAO_SERVICE_CONTEXT_HANDLER_H
14 #include /**/ "ace/pre.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 class TAO_Operation_Details
;
26 class TAO_Target_Specification
;
28 class TAO_ServerRequest
;
31 * This is the base of handler classes that each can process a certain
32 * service context. This way optional libraries can plugin handlers to the
33 * core of TAO. Each handler has to be registered in the Service Context
36 class TAO_Export TAO_Service_Context_Handler
39 TAO_Service_Context_Handler ();
40 virtual int process_service_context (
41 TAO_Transport
& transport
,
42 const IOP::ServiceContext
& context
,
43 TAO_ServerRequest
*request
) = 0;
45 virtual int generate_service_context (
47 TAO_Transport
& transport
,
48 TAO_Operation_Details
&opdetails
,
49 TAO_Target_Specification
&spec
,
50 TAO_OutputCDR
&msg
) = 0;
52 virtual ~TAO_Service_Context_Handler ();
55 TAO_END_VERSIONED_NAMESPACE_DECL
57 #include /**/ "ace/post.h"
59 #endif /* TAO_SERVICE_CONTEXT_HANDLER_H */