blob: 0dabf427fe6747bc4c801e29b40e86e6a02b27eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
// -*- C++ -*-
// ===================================================================
/**
* @file Service_Context_Handler.h
*
* @author Johnny Willemsen <jwillemsen@remedy.nl>
*/
// ===================================================================
#ifndef TAO_SERVICE_CONTEXT_HANDLER_H
#define TAO_SERVICE_CONTEXT_HANDLER_H
#include /**/ "ace/pre.h"
#include "tao/IOPC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Transport;
class TAO_Operation_Details;
class TAO_Target_Specification;
class TAO_Stub;
class TAO_ServerRequest;
/**
* This is the base of handler classes that each can process a certain
* service context. This way optional libraries can plugin handlers to the
* core of TAO. Each handler has to be registered in the Service Context
* Handler registry
*/
class TAO_Export TAO_Service_Context_Handler
{
public:
TAO_Service_Context_Handler (void);
virtual int process_service_context (
TAO_Transport& transport,
const IOP::ServiceContext& context,
TAO_ServerRequest *request) = 0;
virtual int generate_service_context (
TAO_Stub *stub,
TAO_Transport& transport,
TAO_Operation_Details &opdetails,
TAO_Target_Specification &spec,
TAO_OutputCDR &msg) = 0;
virtual ~TAO_Service_Context_Handler (void);
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_SERVICE_CONTEXT_HANDLER_H */
|