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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
// $Id$
#include "tao/corbafwd.h"
#include "tao/Interceptor.h"
#if !defined (__ACE_INLINE__)
#include "tao/Interceptor.i"
#endif /* defined INLINE */
// Followings are the defualt no-op implementation of client-side and
// server-side interceptors. The sole purpose to to let user
// overwrite only the interception operations they are interested in
// without providing others.
// ** Users should always provide a name by dupping a string.
// char * POA_PortableInterceptor::
// Interceptor::name (CORBA::Environment &)
// {
// return CORBA::string_dup ("TAO default");
// }
#if defined (TAO_HAS_INTERCEPTORS)
void POA_PortableInterceptor::
ServerRequestInterceptor::preinvoke (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
IOP::ServiceContextList &,
CORBA::NVList_ptr &,
PortableInterceptor::Cookies &,
CORBA::Environment &)
{
// No-op.
}
void POA_PortableInterceptor::
ServerRequestInterceptor::postinvoke (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
IOP::ServiceContextList&,
CORBA::NVList_ptr &,
PortableInterceptor::Cookies&,
CORBA::Environment &)
{
// No-op.
}
void POA_PortableInterceptor::
ServerRequestInterceptor::exception_occurred (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
//IOP::ServiceContextList &,
//CORBA::Exception_ptr &,
PortableInterceptor::Cookies &,
CORBA::Environment &)
{
// No-op.
}
void POA_PortableInterceptor::
ClientRequestInterceptor::preinvoke (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
IOP::ServiceContextList &,
CORBA::NVList_ptr &,
PortableInterceptor::Cookies &,
CORBA::Environment &)
{
// No-op.
}
void POA_PortableInterceptor::
ClientRequestInterceptor::postinvoke (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
IOP::ServiceContextList&,
CORBA::NVList_ptr &,
PortableInterceptor::Cookies&,
CORBA::Environment &)
{
// No-op.
}
void POA_PortableInterceptor::
ClientRequestInterceptor::exception_occurred (CORBA::ULong,
CORBA::Boolean,
CORBA::Object_ptr,
const char *,
//IOP::ServiceContextList &,
//CORBA::Exception_ptr &,
PortableInterceptor::Cookies &,
CORBA::Environment &)
{
// No-op.
}
#endif /* TAO_HAS_INTERCEPTORS */
|