1 #include "ServerIORInterceptor.h"
4 ServerIORInterceptor::name ()
6 return CORBA::string_dup ("ServerIORInterceptor");
10 ServerIORInterceptor::destroy ()
15 ServerIORInterceptor::establish_components (
16 PortableInterceptor::IORInfo_ptr info
)
18 const char * permission
= "ServerRequiresAuth";
21 CORBA::ULong tagID
= 9654;
23 IOP::TaggedComponent myTag
;
26 const CORBA::ULong len
=
27 static_cast<CORBA::ULong
> (ACE_OS::strlen (permission
));
28 myTag
.component_data
.length (len
+ 1);
30 CORBA::Octet
*buf
= myTag
.component_data
.get_buffer();
32 ACE_OS::memcpy (buf
, permission
, len
+ 1);
34 // add tagged component
35 info
->add_ior_component (myTag
);
37 std::cout
<< "Created Tagged IOR." << std::endl
;
41 ServerIORInterceptor::components_established (
42 PortableInterceptor::IORInfo_ptr
/*info*/)
47 ServerIORInterceptor::adapter_manager_state_changed (
49 PortableInterceptor::AdapterState
/*state*/)
54 ServerIORInterceptor::adapter_state_changed (
55 const PortableInterceptor::ObjectReferenceTemplateSeq
& /*templates*/,
56 PortableInterceptor::AdapterState
/*state*/)