TAO_PI 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO_ClientRequestInfo Class Reference

Implementation of the PortableInterceptor::ClientRequestInfo interface. More...

#include <ClientRequestInfo.h>

Inheritance diagram for TAO_ClientRequestInfo:
Inheritance graph
[legend]
Collaboration diagram for TAO_ClientRequestInfo:
Collaboration graph
[legend]

Public Member Functions

 TAO_ClientRequestInfo (TAO::Invocation_Base *invocation)
 
virtual CORBA::ULong request_id ()
 
virtual char * operation ()
 Return the operation name for the current request.
 
virtual Dynamic::ParameterList * arguments ()
 Return the list of arguments passed to the current operation.
 
virtual Dynamic::ExceptionList * exceptions ()
 
virtual Dynamic::ContextListcontexts ()
 
virtual Dynamic::RequestContextoperation_context ()
 
virtual CORBA::Any * result ()
 
virtual CORBA::Boolean response_expected ()
 Returns true for a two-way operation, and false otherwise.
 
virtual Messaging::SyncScope sync_scope ()
 
virtual PortableInterceptor::ReplyStatus reply_status ()
 Return the reply status for the current request.
 
virtual CORBA::Object_ptr forward_reference ()
 
virtual CORBA::Any * get_slot (PortableInterceptor::SlotId id)
 
virtual IOP::ServiceContextget_request_service_context (IOP::ServiceId id)
 
virtual IOP::ServiceContextget_reply_service_context (IOP::ServiceId id)
 
virtual CORBA::Object_ptr target ()
 
virtual CORBA::Object_ptr effective_target ()
 
virtual IOP::TaggedProfileeffective_profile ()
 
virtual CORBA::Any * received_exception ()
 
virtual char * received_exception_id ()
 Return the repository ID for the received exception.
 
virtual IOP::TaggedComponentget_effective_component (IOP::ComponentId id)
 
virtual IOP::TaggedComponentSeqget_effective_components (IOP::ComponentId id)
 
virtual CORBA::Policy_ptr get_request_policy (CORBA::PolicyType type)
 
virtual void add_request_service_context (const IOP::ServiceContext &service_context, CORBA::Boolean replace)
 
void tao_ft_expiration_time (TimeBase::TimeT time)
 Set the absolute FT expiration time for this request.
 
TimeBase::TimeT tao_ft_expiration_time () const
 Get the absolute FT expiration time for this request.
 
void tao_ft_retention_id (CORBA::Long request_id)
 Set the FT request retention ID for this request.
 
CORBA::Long tao_ft_retention_id () const
 Get the FT request retention ID for this request.
 
- Public Member Functions inherited from PortableInterceptor::ClientRequestInfo
IOP::TaggedComponent get_effective_component (in IOP::ComponentId id)
 
IOP::TaggedComponentSeq get_effective_components (in IOP::ComponentId id)
 
CORBA::Policy get_request_policy (in CORBA::PolicyType type)
 
void add_request_service_context (in IOP::ServiceContext service_context, in boolean replace)
 
- Public Member Functions inherited from PortableInterceptor::RequestInfo
any get_slot (in SlotId id) raises (InvalidSlot)
 
IOP::ServiceContext get_request_service_context (in IOP::ServiceId id)
 
IOP::ServiceContext get_reply_service_context (in IOP::ServiceId id)
 
- Public Member Functions inherited from CORBA::LocalObject
virtual ~LocalObject ()
 
virtual CORBA::Boolean _non_existent ()
 
virtual char * _repository_id ()
 
virtual CORBA::InterfaceDef_ptr _get_interface ()
 
virtual CORBA::Object_ptr _get_component ()
 
virtual void _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::Request_ptr &request, CORBA::Flags req_flags)
 
virtual void _create_request (CORBA::Context_ptr ctx, const char *operation, CORBA::NVList_ptr arg_list, CORBA::NamedValue_ptr result, CORBA::ExceptionList_ptr exclist, CORBA::ContextList_ptr ctxtlist, CORBA::Request_ptr &request, CORBA::Flags req_flags)
 
virtual CORBA::Request_ptr _request (const char *operation)
 
virtual CORBA::ULong _hash (CORBA::ULong maximum)
 
virtual CORBA::Boolean _is_equivalent (CORBA::Object_ptr other_obj)
 
virtual CORBA::ORB_ptr _get_orb ()
 
virtual TAO::ObjectKey_key ()
 
- Public Member Functions inherited from CORBA::Object
virtual ~Object ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
virtual CORBA::ULong _refcount_value () const
 
virtual TAO_Abstract_ServantBase_servant () const
 
virtual CORBA::Boolean _is_collocated () const
 
virtual CORBA::Boolean _is_local () const
 
 Object (TAO_Stub *p, CORBA::Boolean collocated=false, TAO_Abstract_ServantBase *servant=0, TAO_ORB_Core *orb_core=0)
 
 Object (IOP::IOR *ior, TAO_ORB_Core *orb_core)
 
virtual TAO_Stub_stubobj () const
 
virtual TAO_Stub_stubobj ()
 
virtual void _proxy_broker (TAO::Object_Proxy_Broker *proxy_broker)
 
virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr)
 
CORBA::Boolean is_evaluated () const
 
TAO_ORB_Coreorb_core () const
 
IOP::IORsteal_ior ()
 
const IOP::IORior () const
 
virtual bool can_convert_to_ior () const
 
virtual char * convert_to_ior (bool use_omg_ior_format, const char *ior_prefix) const
 
void _decr_refcount ()
 
virtual CORBA::Boolean _is_a (const char *logical_type_id)
 
virtual const char * _interface_repository_id () const
 

Private Member Functions

bool parameter_list (Dynamic::ParameterList &param_list)
 
bool exception_list (Dynamic::ExceptionList &exception_list)
 
bool result (CORBA::Any *any)
 
void check_validity ()
 
void setup_picurrent ()
 
IOP::ServiceContextget_service_context_i (TAO_Service_Context &service_context_list, IOP::ServiceId id)
 Helper method to get the request and response service contexts.
 

Private Attributes

TAO::Invocation_Baseinvocation_
 Pointer to the invocation object.
 
TAO::PICurrent_Impl rs_pi_current_
 

Additional Inherited Members

- Public Types inherited from CORBA::LocalObject
typedef LocalObject_ptr _ptr_type
 
typedef LocalObject_var _var_type
 
typedef LocalObject_out _out_type
 
- Public Types inherited from CORBA::Object
typedef Object_ptr _ptr_type
 
typedef Object_var _var_type
 
typedef Object_out _out_type
 
- Static Public Member Functions inherited from CORBA::LocalObject
static LocalObject_ptr _duplicate (LocalObject_ptr obj)
 
static LocalObject_ptr _nil ()
 
static LocalObject_ptr _narrow (CORBA::Object_ptr obj)
 
- Static Public Member Functions inherited from CORBA::Object
static CORBA::Boolean marshal (const Object_ptr x, TAO_OutputCDR &cdr)
 
static void _tao_any_destructor (void *)
 
static CORBA::Boolean is_nil_i (CORBA::Object_ptr obj)
 
static void tao_object_initialize (Object *)
 
static CORBA::Object_ptr _duplicate (CORBA::Object_ptr obj)
 
static CORBA::Object_ptr _nil ()
 
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj)
 
- Public Attributes inherited from PortableInterceptor::ClientRequestInfo
- Public Attributes inherited from PortableInterceptor::RequestInfo
- Protected Member Functions inherited from CORBA::LocalObject
 LocalObject ()
 
- Protected Member Functions inherited from CORBA::Object
 Object (int dummy=0)
 
TAO::Object_Proxy_Brokerproxy_broker () const
 
- Protected Attributes inherited from CORBA::Object
std::atomic< uint32_t > refcount_
 

Detailed Description

Implementation of the PortableInterceptor::ClientRequestInfo interface.

Constructor & Destructor Documentation

◆ TAO_ClientRequestInfo()

TAO_ClientRequestInfo::TAO_ClientRequestInfo ( TAO::Invocation_Base * invocation)

Member Function Documentation

◆ add_request_service_context()

void TAO_ClientRequestInfo::add_request_service_context ( const IOP::ServiceContext & service_context,
CORBA::Boolean replace )
virtual

Add the IOP::ServiceContext to the request (outgoing) IOP::ServiceContextList.

◆ arguments()

Dynamic::ParameterList * TAO_ClientRequestInfo::arguments ( )
virtual

Return the list of arguments passed to the current operation.

Implements PortableInterceptor::RequestInfo.

◆ check_validity()

void TAO_ClientRequestInfo::check_validity ( )
private

Check if this ClientRequestInfo object is called within the context of a request.

◆ contexts()

Dynamic::ContextList * TAO_ClientRequestInfo::contexts ( )
virtual

◆ effective_profile()

IOP::TaggedProfile * TAO_ClientRequestInfo::effective_profile ( )
virtual

◆ effective_target()

CORBA::Object_ptr TAO_ClientRequestInfo::effective_target ( )
virtual

Return the object reference for the current target. The target may change in the even of a location forward.

Implements PortableInterceptor::ClientRequestInfo.

◆ exception_list()

bool TAO_ClientRequestInfo::exception_list ( Dynamic::ExceptionList & exception_list)
private

◆ exceptions()

Dynamic::ExceptionList * TAO_ClientRequestInfo::exceptions ( )
virtual

Return the list of exceptions the current operation is capable of throwing.

Implements PortableInterceptor::RequestInfo.

◆ forward_reference()

CORBA::Object_ptr TAO_ClientRequestInfo::forward_reference ( )
virtual

If the reply status is PortableInterceptor::LOCATION_FORWARD or return the object reference to which the request was forwarded.

Implements PortableInterceptor::RequestInfo.

◆ get_effective_component()

IOP::TaggedComponent * TAO_ClientRequestInfo::get_effective_component ( IOP::ComponentId id)
virtual

Return the first IOP::TaggedComponent that matches the given IOP::ComponentId in the object reference for the current target.

◆ get_effective_components()

IOP::TaggedComponentSeq * TAO_ClientRequestInfo::get_effective_components ( IOP::ComponentId id)
virtual

Return all IOP::TaggedComponent(s) that match the given IOP::ComponentId in the object reference for the current target.

◆ get_reply_service_context()

IOP::ServiceContext * TAO_ClientRequestInfo::get_reply_service_context ( IOP::ServiceId id)
virtual

Return the IOP::ServiceContext with the given IOP::ServiceId from the reply service context list.

◆ get_request_policy()

CORBA::Policy_ptr TAO_ClientRequestInfo::get_request_policy ( CORBA::PolicyType type)
virtual

Return the policy of the given type in effect for the current request.

◆ get_request_service_context()

IOP::ServiceContext * TAO_ClientRequestInfo::get_request_service_context ( IOP::ServiceId id)
virtual

Return the IOP::ServiceContext with the given IOP::ServiceId from the request service context list.

◆ get_service_context_i()

IOP::ServiceContext * TAO_ClientRequestInfo::get_service_context_i ( TAO_Service_Context & service_context_list,
IOP::ServiceId id )
private

Helper method to get the request and response service contexts.

◆ get_slot()

CORBA::Any * TAO_ClientRequestInfo::get_slot ( PortableInterceptor::SlotId id)
virtual

◆ operation()

char * TAO_ClientRequestInfo::operation ( )
virtual

Return the operation name for the current request.

Implements PortableInterceptor::RequestInfo.

◆ operation_context()

Dynamic::RequestContext * TAO_ClientRequestInfo::operation_context ( )
virtual

◆ parameter_list()

bool TAO_ClientRequestInfo::parameter_list ( Dynamic::ParameterList & param_list)
private

◆ received_exception()

CORBA::Any * TAO_ClientRequestInfo::received_exception ( )
virtual

Return an Any containing the received exception, if any. Otherwise, throw a CORBA::BAD_INV_ORDER exception.

Note
There is no trivial way to extract the exception from an Any.

Implements PortableInterceptor::ClientRequestInfo.

◆ received_exception_id()

char * TAO_ClientRequestInfo::received_exception_id ( )
virtual

Return the repository ID for the received exception.

Implements PortableInterceptor::ClientRequestInfo.

◆ reply_status()

PortableInterceptor::ReplyStatus TAO_ClientRequestInfo::reply_status ( )
virtual

Return the reply status for the current request.

Statuses can be PortableInterceptor::SUCCESSFUL, SYSTEM_EXCEPTION, USER_EXCEPTION, LOCATION_FORWARD, TRANSPORT_RETRY, UNKNOWN.

Implements PortableInterceptor::RequestInfo.

◆ request_id()

CORBA::ULong TAO_ClientRequestInfo::request_id ( )
virtual

Return an ID unique to the current request. This request ID may or may not be the same as the GIOP request ID.

Implements PortableInterceptor::RequestInfo.

◆ response_expected()

CORBA::Boolean TAO_ClientRequestInfo::response_expected ( )
virtual

Returns true for a two-way operation, and false otherwise.

Implements PortableInterceptor::RequestInfo.

◆ result() [1/2]

CORBA::Any * TAO_ClientRequestInfo::result ( )
virtual

Return the result of the current request. If there is no return value then an Any with tk_void TypeCode is returned. This is method is not valid for oneway operations.

Implements PortableInterceptor::RequestInfo.

◆ result() [2/2]

bool TAO_ClientRequestInfo::result ( CORBA::Any * any)
private

◆ setup_picurrent()

void TAO_ClientRequestInfo::setup_picurrent ( )
private

Setup thread scope and request scope PortableInterceptor::Current objects.

◆ sync_scope()

Messaging::SyncScope TAO_ClientRequestInfo::sync_scope ( )
virtual

Return the sync_scope policy value for the current one-way operation. If the operation is not a one-way, a CORBA::BAD_INV_ORDER exception is thrown.

Implements PortableInterceptor::RequestInfo.

◆ tao_ft_expiration_time() [1/2]

TimeBase::TimeT TAO_ClientRequestInfo::tao_ft_expiration_time ( ) const

Get the absolute FT expiration time for this request.

◆ tao_ft_expiration_time() [2/2]

void TAO_ClientRequestInfo::tao_ft_expiration_time ( TimeBase::TimeT time)

Set the absolute FT expiration time for this request.

◆ tao_ft_retention_id() [1/2]

CORBA::Long TAO_ClientRequestInfo::tao_ft_retention_id ( ) const

Get the FT request retention ID for this request.

◆ tao_ft_retention_id() [2/2]

void TAO_ClientRequestInfo::tao_ft_retention_id ( CORBA::Long request_id)

Set the FT request retention ID for this request.

◆ target()

CORBA::Object_ptr TAO_ClientRequestInfo::target ( )
virtual

Return the (initial, non-forwarded, or permanently forwarded) object reference of the target.

Implements PortableInterceptor::ClientRequestInfo.

Member Data Documentation

◆ invocation_

TAO::Invocation_Base* TAO_ClientRequestInfo::invocation_
private

Pointer to the invocation object.

◆ rs_pi_current_

TAO::PICurrent_Impl TAO_ClientRequestInfo::rs_pi_current_
private

The "Request Scope Current" (RSC) object, as required by Portable Interceptors.


The documentation for this class was generated from the following files: