00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_CLIENT_REQUEST_INFO_H
00017 #define TAO_CLIENT_REQUEST_INFO_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "tao/orbconf.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #if (TAO_HAS_INTERCEPTORS == 1)
00028
00029 #if defined(_MSC_VER)
00030 #pragma warning(push)
00031 #pragma warning(disable:4250)
00032 #endif
00033
00034 #include "tao/AnyTypeCode/AnyTypeCode_methods.h"
00035 #include "tao/PI/ClientRequestInfoC.h"
00036 #include "tao/PI/PIForwardRequestC.h"
00037 #include "tao/PI/PICurrent_Impl.h"
00038 #include "tao/CORBA_methods.h"
00039 #include "tao/ORB_Constants.h"
00040 #include "tao/LocalObject.h"
00041 #include "tao/Invocation_Utils.h"
00042 #include "tao/TimeBaseC.h"
00043
00044 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00045
00046 class TAO_Service_Context;
00047
00048 namespace TAO
00049 {
00050 class Invocation_Base;
00051 }
00052
00053 namespace Dynamic
00054 {
00055 class ParameterList;
00056 class ExceptionList;
00057 typedef CORBA::StringSeq RequestContext;
00058 typedef CORBA::StringSeq ContextList;
00059 }
00060
00061 namespace Messaging
00062 {
00063 typedef CORBA::Short SyncScope;
00064 }
00065
00066
00067
00068
00069
00070
00071
00072 class TAO_PI_Export TAO_ClientRequestInfo
00073 : public virtual PortableInterceptor::ClientRequestInfo,
00074 public virtual TAO_Local_RefCounted_Object
00075 {
00076 public:
00077 TAO_ClientRequestInfo (TAO::Invocation_Base *invocation);
00078
00079
00080
00081 virtual CORBA::ULong request_id (void);
00082
00083
00084 virtual char * operation (void);
00085
00086
00087 virtual Dynamic::ParameterList * arguments (void);
00088
00089
00090
00091 virtual Dynamic::ExceptionList * exceptions (void);
00092
00093 virtual Dynamic::ContextList * contexts (void);
00094
00095 virtual Dynamic::RequestContext * operation_context (void);
00096
00097
00098
00099
00100 virtual CORBA::Any * result (void);
00101
00102
00103 virtual CORBA::Boolean response_expected (void);
00104
00105
00106
00107
00108 virtual Messaging::SyncScope sync_scope (void);
00109
00110
00111
00112
00113
00114
00115
00116 virtual PortableInterceptor::ReplyStatus reply_status (void);
00117
00118
00119
00120 virtual CORBA::Object_ptr forward_reference (void);
00121
00122 virtual CORBA::Any * get_slot (PortableInterceptor::SlotId id);
00123
00124
00125
00126 virtual IOP::ServiceContext * get_request_service_context (
00127 IOP::ServiceId id);
00128
00129
00130
00131 virtual IOP::ServiceContext * get_reply_service_context (IOP::ServiceId id);
00132
00133
00134
00135 virtual CORBA::Object_ptr target (void);
00136
00137
00138
00139 virtual CORBA::Object_ptr effective_target (void);
00140
00141 virtual IOP::TaggedProfile * effective_profile (void);
00142
00143
00144
00145
00146
00147
00148 virtual CORBA::Any * received_exception (void);
00149
00150
00151 virtual char * received_exception_id (void);
00152
00153
00154
00155
00156 virtual IOP::TaggedComponent * get_effective_component (IOP::ComponentId id);
00157
00158
00159
00160
00161 virtual IOP::TaggedComponentSeq * get_effective_components (IOP::ComponentId id);
00162
00163
00164
00165 virtual CORBA::Policy_ptr get_request_policy (CORBA::PolicyType type);
00166
00167
00168
00169 virtual void add_request_service_context (
00170 const IOP::ServiceContext & service_context,
00171 CORBA::Boolean replace);
00172
00173
00174
00175
00176
00177
00178
00179 void tao_ft_expiration_time (TimeBase::TimeT time);
00180
00181
00182 TimeBase::TimeT tao_ft_expiration_time (void) const;
00183
00184
00185 void tao_ft_retention_id (CORBA::Long request_id);
00186
00187
00188 CORBA::Long tao_ft_retention_id (void) const;
00189
00190
00191
00192
00193
00194 private:
00195
00196 bool parameter_list (Dynamic::ParameterList ¶m_list);
00197
00198 bool exception_list (Dynamic::ExceptionList &exception_list);
00199
00200 bool result (CORBA::Any *any);
00201
00202
00203
00204 void check_validity (void);
00205
00206
00207
00208 void setup_picurrent (void);
00209
00210
00211 IOP::ServiceContext *get_service_context_i (
00212 TAO_Service_Context &service_context_list,
00213 IOP::ServiceId id);
00214
00215 private:
00216
00217 TAO::Invocation_Base *invocation_;
00218
00219
00220
00221 TAO::PICurrent_Impl rs_pi_current_;
00222 };
00223
00224 TAO_END_VERSIONED_NAMESPACE_DECL
00225
00226 #if defined(_MSC_VER)
00227 #pragma warning(pop)
00228 #endif
00229
00230 #endif
00231
00232 #include "ace/post.h"
00233
00234 #endif