blob: 994b8529519831c8115590c7d032cb99ee4335a1 (
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
|
// -*- C++ -*-
//
// $Id$
ACE_INLINE void
TAO_ServerRequestInfo::exception (CORBA::Exception *exception)
{
if (CORBA::SystemException::_downcast (exception) != 0)
this->reply_status_ = PortableInterceptor::SYSTEM_EXCEPTION;
else if (CORBA::UserException::_downcast (exception) != 0)
this->reply_status_ = PortableInterceptor::USER_EXCEPTION;
// @@ Is it possible for both of the above downcasts to fail?
this->caught_exception_ = exception;
}
ACE_INLINE void
TAO_ServerRequestInfo::reply_status (PortableInterceptor::ReplyStatus s)
{
this->reply_status_ = s;
}
ACE_INLINE void
TAO_ServerRequestInfo::forward_reference (
PortableInterceptor::ForwardRequest &exc)
{
// Note that we're converting the ForwardRequest exception in to a
// LOCATION_FORWARD reply, so we do not set the exception status.
if (exc.permanent)
this->reply_status_ =
PortableInterceptor::LOCATION_FORWARD_PERMANENT;
else
this->reply_status_ =
PortableInterceptor::LOCATION_FORWARD;
this->forward_reference_ =
CORBA::Object::_duplicate (exc.forward.in ());
}
ACE_INLINE void
TAO_ServerRequestInfo::forward_reference (CORBA::Object_ptr obj)
{
// We only get here if a servant manager threw a
// PortableServer::ForwardRequest exception.
// LOCATION_FORWARD_PERMANENT is not supported by TAO, so assume
// that a LOCATION_FORWARD reply will be sent.
// @@ LOCATION_FORWARD_PERMANENT will apparently be dropped from
// future GIOP specifications.
this->reply_status_ = PortableInterceptor::LOCATION_FORWARD;
this->forward_reference_ = CORBA::Object::_duplicate (obj);
}
|