2 #include "tao/PI/RequestInfo_Util.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "tao/AnyTypeCode/TypeCode.h"
7 #include "tao/AnyTypeCode/DynamicC.h"
8 #include "tao/ORB_Constants.h"
9 #include "tao/StringSeqC.h"
10 #include "tao/SystemException.h"
11 #include "ace/CORBA_macros.h"
13 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
15 Dynamic::ParameterList
*
16 TAO_RequestInfo_Util::make_parameter_list ()
18 Dynamic::ParameterList
*parameter_list
= 0;
19 ACE_NEW_THROW_EX (parameter_list
,
20 Dynamic::ParameterList
,
22 CORBA::SystemException::_tao_minor_code (
25 CORBA::COMPLETED_NO
));
27 // No need to do an ACE_CHECK_RETURN. The caller should do that.
29 return parameter_list
;
32 Dynamic::ExceptionList
*
33 TAO_RequestInfo_Util::make_exception_list ()
35 Dynamic::ExceptionList
*exception_list
= 0;
36 ACE_NEW_THROW_EX (exception_list
,
37 Dynamic::ExceptionList
,
39 CORBA::SystemException::_tao_minor_code (
42 CORBA::COMPLETED_NO
));
44 // No need to do an ACE_CHECK_RETURN. The caller should do that.
46 return exception_list
;
49 Dynamic::ContextList
*
50 TAO_RequestInfo_Util::make_context_list ()
52 Dynamic::ContextList
*context_list
= 0;
53 ACE_NEW_THROW_EX (context_list
,
56 CORBA::SystemException::_tao_minor_code (
59 CORBA::COMPLETED_NO
));
61 // No need to do an ACE_CHECK_RETURN. The caller should do that.
66 Dynamic::RequestContext
*
67 TAO_RequestInfo_Util::make_request_context ()
69 Dynamic::RequestContext
*request_context
= 0;
70 ACE_NEW_THROW_EX (request_context
,
71 Dynamic::RequestContext
,
73 CORBA::SystemException::_tao_minor_code (
76 CORBA::COMPLETED_NO
));
78 // No need to do an ACE_CHECK_RETURN. The caller should do that.
80 return request_context
;
84 TAO_RequestInfo_Util::make_any (CORBA::Boolean tk_void_any
)
87 ACE_NEW_THROW_EX (any
,
90 CORBA::SystemException::_tao_minor_code (
93 CORBA::COMPLETED_NO
));
97 any
->_tao_set_typecode (CORBA::_tc_void
);
103 TAO_END_VERSIONED_NAMESPACE_DECL