blob: aae4ac75da4ec8cac3fcae9063520a4fad0cb59f (
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
|
// $Id$
//
// ============================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// Forwarding_Servant.h
//
// = DESCRIPTION
//
// A DSI implementation of a forwarding servant.
//
// = AUTHOR
//
// Irfan Pyarali
//
// ============================================================================
#if !defined (TAO_FORWARDING_SERVANT_H)
#define TAO_FORWARDING_SERVANT_H
#include "tao/corba.h"
class TAO_Forwarding_Servant : public PortableServer::DynamicImplementation
{
public:
TAO_Forwarding_Servant (CORBA::Object_ptr forward_to,
const char *interface_repository_id_);
// Constructor
virtual void invoke (CORBA::ServerRequest_ptr request,
CORBA::Environment &env);
// The invoke() method receives requests issued to any CORBA object
// incarnated by the DSI servant and performs the processing
// necessary to execute the request.
virtual CORBA::RepositoryId _primary_interface (const PortableServer::ObjectId &oid,
PortableServer::POA_ptr poa,
CORBA::Environment &env);
// The _primary_interface() method receives an ObjectId value and a
// POA_ptr as input parameters and returns a valid RepositoryId
// representing the most-derived interface for that oid.
protected:
CORBA::Object_var forward_to_;
// Forward all requests to this object
CORBA::String_var interface_repository_id_;
// Here is the interface we support
};
#endif /* TAO_FORWARDING_SERVANT_H */
|