summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableInterceptor.i
blob: a093773a154cdb497932b4320e6fad0af8666cd0 (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
/* -*- C++ -*- $Id$ */

#if (TAO_HAS_INTERCEPTORS == 1)
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 CORBA::Boolean
TAO_ClientRequestInterceptor_Adapter::valid (void) const
{
  return (! CORBA::is_nil (this->interceptor_.in ()));
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter::
        send_request (PortableInterceptor::ClientRequestInfo_ptr ri,
                      CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->send_request (ri,
                                      ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter:: 
receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri,  
               CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->receive_reply (ri, 
                                       ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ClientRequestInterceptor_Adapter::
receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri,
                   CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->receive_exception (ri, 
                                            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 CORBA::Boolean
TAO_ServerRequestInterceptor_Adapter::valid (void) const
{
  return (! CORBA::is_nil (this->interceptor_.in ()));
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
receive_request (PortableInterceptor::ServerRequestInfo_ptr ri,
                 CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->receive_request (ri,
                                         ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
send_reply (PortableInterceptor::ServerRequestInfo_ptr ri,
            CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->send_reply (ri,
                                    ACE_TRY_ENV);
}

ACE_INLINE void
TAO_ServerRequestInterceptor_Adapter::
send_exception (PortableInterceptor::ServerRequestInfo_ptr ri,
                CORBA::Environment &ACE_TRY_ENV)
{
  if (this->valid ())
    this->interceptor_->send_exception (ri,
                                        ACE_TRY_ENV);
}
#endif /* TAO_HAS_INTERCEPTORS */