blob: 25eac5e2ed5e104ca7e36b812097a495c80f541b (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
// -*- C++ -*-
#include "ServerRequest_Interceptor2.h"
#include "orbsvcs/FT_CORBA_ORBC.h"
#include "tao/IOPC.h"
#include "tao/ORB_Constants.h"
#include "tao/AnyTypeCode/DynamicC.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/CDR.h"
#include "ace/Log_Msg.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_unistd.h"
#include "Hello.h"
#include "ace/OS_NS_sys_time.h"
#include "tao/PI/PIForwardRequestC.h"
CORBA::Boolean
ServerRequest_Interceptor2::has_ft_request_sc_ = false;
ServerRequest_Interceptor2::ServerRequest_Interceptor2 (void)
: orb_ (0)
{
}
ServerRequest_Interceptor2::~ServerRequest_Interceptor2 (void)
{
}
char *
ServerRequest_Interceptor2::name (void)
{
return CORBA::string_dup ("ServerRequest_Interceptor2");
}
void
ServerRequest_Interceptor2::destroy (void)
{
}
void
ServerRequest_Interceptor2::receive_request_service_contexts (
PortableInterceptor::ServerRequestInfo_ptr)
{
}
void
ServerRequest_Interceptor2::receive_request (
PortableInterceptor::ServerRequestInfo_ptr ri)
{
CORBA::String_var op = ri->operation ();
if (ACE_OS::strcmp (op.in (), "has_ft_request_service_context"))
{
// bail if not the op we are interested in -
// avoid excess spurious error clutter when client calls ::shutdown; ::ping etc..
return;
}
try
{
IOP::ServiceContext_var sc =
ri->get_request_service_context (IOP::FT_REQUEST);
// No exception therefore there was a context
has_ft_request_sc_ = true;
}
catch (const CORBA::BAD_PARAM& ex)
{
ACE_UNUSED_ARG (ex);
// No group version context
has_ft_request_sc_ = false;
}
catch (const CORBA::Exception&)
{
throw;
}
}
void
ServerRequest_Interceptor2::send_reply (
PortableInterceptor::ServerRequestInfo_ptr)
{
}
void
ServerRequest_Interceptor2::send_exception (
PortableInterceptor::ServerRequestInfo_ptr)
{
}
void
ServerRequest_Interceptor2::send_other (
PortableInterceptor::ServerRequestInfo_ptr)
{
}
|