summaryrefslogtreecommitdiff
path: root/TAO/tao/Interceptor.i
blob: 13e6205146c5f82417eeb899f23806f015893087 (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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* -*- C++ -*- $Id$ */

#if defined (TAO_HAS_INTERCEPTORS)
ACE_INLINE
TAO_ClientRequestInterceptor_Adapter::TAO_ClientRequestInterceptor_Adapter
  (PortableInterceptor::ClientRequestInterceptor_ptr interceptor)
    : interceptor_ (interceptor)
{
}

ACE_INLINE
TAO_ClientRequestInterceptor_Adapter::~TAO_ClientRequestInterceptor_Adapter
  (void)
{
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter::
preinvoke (CORBA::ULong request_id,
           CORBA::Boolean two_way,
           CORBA::Object_ptr objref,
           const char *operation,
           IOP::ServiceContextList &sc,
           CORBA::NVList_ptr &args,
           PortableInterceptor::Cookies &cookies,
           CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->preinvoke (request_id,
                                   two_way,
                                   objref,
                                   operation,
                                   sc,
                                   args,
                                   cookies,
                                   ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter::
postinvoke (CORBA::ULong request_id,
            CORBA::Boolean two_way,
            CORBA::Object_ptr objref,
            const char *operation,
            IOP::ServiceContextList &sc,
            CORBA::NVList_ptr &args,
            PortableInterceptor::Cookies &cookies,
            CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->postinvoke (request_id,
                                    two_way,
                                    objref,
                                    operation,
                                    sc,
                                    args,
                                    cookies,
                                    ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter::
exception_occurred (CORBA::ULong request_id,
                    CORBA::Boolean two_way,
                    CORBA::Object_ptr objref,
                    const char *operation,
                    //IOP::ServiceContextList &,
                    //CORBA::Exception_ptr &,
                    PortableInterceptor::Cookies &cookies,
                    CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->exception_occurred (request_id,
                                            two_way,
                                            objref,
                                            operation,
                                            cookies,
                                            ACE_TRY_ENV);
}

ACE_INLINE
TAO_ServerRequestInterceptor_Adapter::TAO_ServerRequestInterceptor_Adapter
  (PortableInterceptor::ServerRequestInterceptor_ptr interceptor)
    : interceptor_ (interceptor)
{
}

ACE_INLINE
TAO_ServerRequestInterceptor_Adapter::~TAO_ServerRequestInterceptor_Adapter
  (void)
{
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
preinvoke (CORBA::ULong request_id,
           CORBA::Boolean two_way,
           CORBA::Object_ptr objref,
           const char *operation,
           IOP::ServiceContextList &sc,
           CORBA::NVList_ptr &args,
           PortableInterceptor::Cookies &cookies,
           CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->preinvoke (request_id,
                                   two_way,
                                   objref,
                                   operation,
                                   sc,
                                   args,
                                   cookies,
                                   ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
postinvoke (CORBA::ULong request_id,
            CORBA::Boolean two_way,
            CORBA::Object_ptr objref,
            const char *operation,
            IOP::ServiceContextList &sc,
            CORBA::NVList_ptr &args,
            PortableInterceptor::Cookies &cookies,
            CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->postinvoke (request_id,
                                    two_way,
                                    objref,
                                    operation,
                                    sc,
                                    args,
                                    cookies,
                                    ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
exception_occurred (CORBA::ULong request_id,
                    CORBA::Boolean two_way,
                    CORBA::Object_ptr objref,
                    const char *operation,
                    //IOP::ServiceContextList &,
                    //CORBA::Exception_ptr &,
                    PortableInterceptor::Cookies &cookies,
                    CORBA::Environment &ACE_TRY_ENV)
{
  if (! CORBA::is_nil (this->interceptor_.in ()))
    this->interceptor_->exception_occurred (request_id,
                                            two_way,
                                            objref,
                                            operation,
                                            cookies,
                                            ACE_TRY_ENV);
}
#endif /* TAO_HAS_INTERCEPTORS */