summaryrefslogtreecommitdiff
path: root/TAO/tao/Server_Request.i
blob: b1ff0e18798a67c8199ef902d80fb37a9bdaca1a (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
// $Id$

ACE_INLINE CORBA::Boolean
CORBA::is_nil (CORBA_ServerRequest *x)
{
  return x != 0;
}

// @@ TODO TAO allocates its ServerRequest objects from the stack,
// using reference counting wouldn't help much.  Using a _clone()
// method would make the following methods really easy to implement,
// but that's hard to implement for the extremely optimized
// IIOP_ServerRequest.
// Another solution would be to modify the class hierarchy, make
// ServerRequest the "slow" version (with copies for each field) and
// IIOP_ServerRequest the "fast" version (with no copies at all). The
// first would be use for DII and the later for SII.
ACE_INLINE CORBA_ServerRequest *
CORBA_ServerRequest::_duplicate (CORBA_ServerRequest *)
{
  return 0;
}

ACE_INLINE void
CORBA::release (CORBA_ServerRequest *)
{
}

ACE_INLINE CORBA_ServerRequest *
CORBA_ServerRequest::_nil (void)
{
  return 0;
}

ACE_INLINE TAO_InputCDR &
IIOP_ServerRequest::incoming (void)
{
  return *this->incoming_;
}

ACE_INLINE TAO_OutputCDR &
IIOP_ServerRequest::outgoing (void)
{
  return *this->outgoing_;
}

// Invocation attributes.
ACE_INLINE const char *
IIOP_ServerRequest::operation (void) const
{
  return this->operation_;
}

#if 0
//@@ (TAO) to do after Context is implemented
ACE_INLINE CORBA::Context_ptr
IIOP_ServerRequest::ctx (void)
{
  return 0;
}
#endif

ACE_INLINE CORBA::ORB_ptr
IIOP_ServerRequest::orb (void)
{
  return this->orb_core_->orb ();
}

ACE_INLINE TAO_POA *
IIOP_ServerRequest::oa (void)
{
  return this->orb_core_->root_poa ();
}

ACE_INLINE CORBA::Boolean
IIOP_ServerRequest::response_expected (void) const
{
  return this->response_expected_;
}

ACE_INLINE CORBA::Principal_ptr 
IIOP_ServerRequest::principal (void) const
{
  return this->requesting_principal_;
}

ACE_INLINE const TAO_opaque &
IIOP_ServerRequest::object_key (void) const
{
  return this->object_key_;
}

ACE_INLINE const TAO_GIOP_ServiceContextList &
IIOP_ServerRequest::service_info (void) const
{
  return this->service_info_;
}

ACE_INLINE CORBA::ULong 
IIOP_ServerRequest::request_id (void)
{
  return this->request_id_;
}