2 #include "Server_ORBInitializer.h"
3 #include "tao/ORB_Constants.h"
5 #if TAO_HAS_INTERCEPTORS == 1
7 #include "Server_Request_Interceptor.h"
9 Server_ORBInitializer::Server_ORBInitializer ()
10 : server_interceptor_ ()
15 Server_ORBInitializer::pre_init (
16 PortableInterceptor::ORBInitInfo_ptr
)
21 Server_ORBInitializer::post_init (
22 PortableInterceptor::ORBInitInfo_ptr info
)
24 PortableInterceptor::ServerRequestInterceptor_ptr interceptor
;
25 // Install the server request interceptor.
26 ACE_NEW_THROW_EX (interceptor
,
27 Server_Request_Interceptor
,
29 CORBA::SystemException::_tao_minor_code (
32 CORBA::COMPLETED_NO
));
34 this->server_interceptor_
= interceptor
;
36 info
->add_server_request_interceptor (interceptor
);
39 PortableInterceptor::ServerRequestInterceptor_ptr
40 Server_ORBInitializer::server_interceptor ()
43 PortableInterceptor::ServerRequestInterceptor::_duplicate (
44 this->server_interceptor_
.in ());
47 #endif /* TAO_HAS_INTERCEPTORS == 1 */