2 #include "ace/Log_Msg.h"
4 #include "Server_Request_Interceptor.h"
5 #include "Server_ORBInitializer.h"
9 Server_Request_Interceptor::Server_Request_Interceptor (const char* orbid
, TEST test
)
11 , orb_id_ (::CORBA::string_dup (orbid
))
16 Server_Request_Interceptor::~Server_Request_Interceptor ()
21 Server_Request_Interceptor::test_transport_current (const ACE_TCHAR
* amethod
)
23 CORBA::String_var
name (this->name ());
25 ACE_TEXT ("%s (%P|%t) Test accessing Transport Current from %s\n"),
29 ++this->request_count_
;
31 if (TAO_debug_level
>=1)
33 ACE_TEXT ("%s (%P|%t) Getting the ORB\n"),
38 CORBA::ORB_var orb
= CORBA::ORB_init (tmpargc
,
41 if (TAO_debug_level
>=1)
43 ACE_TEXT ("%s (%P|%t) Resolving the TC\n"),
46 CORBA::Object_var tcobject
=
47 orb
->resolve_initial_references ("TAO::Transport::Current");
49 // Run the test function
50 (*this->test_
) (orb
.in ());
53 ACE_TEXT ("%s (%P|%t) Success - Transport Current from %s\n"),
58 /// queries the status of the test
60 Server_Request_Interceptor::self_test ()
67 Server_Request_Interceptor::name ()
69 return CORBA::string_dup ("SRI ");
73 Server_Request_Interceptor::destroy ()
78 Server_Request_Interceptor::receive_request_service_contexts (PortableInterceptor::ServerRequestInfo_ptr
)
80 test_transport_current (ACE_TEXT ("receive_request_service_contexts"));
84 Server_Request_Interceptor::receive_request (PortableInterceptor::ServerRequestInfo_ptr
)
86 test_transport_current (ACE_TEXT ("receive_request"));
90 Server_Request_Interceptor::send_reply (PortableInterceptor::ServerRequestInfo_ptr
)
92 test_transport_current (ACE_TEXT ("send_reply"));
96 Server_Request_Interceptor::send_exception (PortableInterceptor::ServerRequestInfo_ptr
)
98 test_transport_current (ACE_TEXT ("send_exception"));
102 Server_Request_Interceptor::send_other (PortableInterceptor::ServerRequestInfo_ptr
)
104 test_transport_current (ACE_TEXT ("send_other"));
106 } /* namespace Test */