00001 // -*- C++ -*- 00002 // 00003 // TAO_Server_Request.i,v 1.27 2005/11/02 11:03:27 ossama Exp 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE TAO_ORB_Core * 00008 TAO_ServerRequest::orb_core (void) const 00009 { 00010 return this->orb_core_; 00011 } 00012 00013 ACE_INLINE TAO_InputCDR * 00014 TAO_ServerRequest::incoming (void) const 00015 { 00016 return this->incoming_; 00017 } 00018 00019 ACE_INLINE TAO_OutputCDR * 00020 TAO_ServerRequest::outgoing (void) const 00021 { 00022 return this->outgoing_; 00023 } 00024 00025 ACE_INLINE const char * 00026 TAO_ServerRequest::operation (void) const 00027 { 00028 return this->operation_.c_str (); 00029 } 00030 00031 ACE_INLINE void 00032 TAO_ServerRequest::operation (const char *operation, 00033 size_t length, 00034 int release) 00035 { 00036 if (length == 0) 00037 { 00038 this->operation_.set (operation, release); 00039 } 00040 else 00041 { 00042 this->operation_.set (operation, length, release); 00043 } 00044 } 00045 00046 ACE_INLINE size_t 00047 TAO_ServerRequest::operation_length (void) const 00048 { 00049 return this->operation_.length (); 00050 } 00051 00052 ACE_INLINE CORBA::Boolean 00053 TAO_ServerRequest::response_expected (void) const 00054 { 00055 return this->response_expected_; 00056 } 00057 00058 ACE_INLINE CORBA::Boolean 00059 TAO_ServerRequest::deferred_reply (void) const 00060 { 00061 return this->deferred_reply_; 00062 } 00063 00064 ACE_INLINE void 00065 TAO_ServerRequest::response_expected (CORBA::Boolean response) 00066 { 00067 this->response_expected_ = response; 00068 } 00069 00070 ACE_INLINE CORBA::Boolean 00071 TAO_ServerRequest::sync_with_server (void) const 00072 { 00073 return this->sync_with_server_; 00074 } 00075 00076 ACE_INLINE void 00077 TAO_ServerRequest::sync_with_server (CORBA::Boolean sync_flag) 00078 { 00079 this->sync_with_server_ = sync_flag; 00080 } 00081 00082 ACE_INLINE TAO::ObjectKey & 00083 TAO_ServerRequest::object_key (void) 00084 { 00085 return this->profile_.object_key (); 00086 } 00087 00088 ACE_INLINE TAO_Service_Context & 00089 TAO_ServerRequest::request_service_context (void) 00090 { 00091 return this->request_service_context_; 00092 } 00093 00094 ACE_INLINE IOP::ServiceContextList & 00095 TAO_ServerRequest::reply_service_info (void) 00096 { 00097 return this->reply_service_context ().service_info (); 00098 } 00099 00100 ACE_INLINE IOP::ServiceContextList & 00101 TAO_ServerRequest::request_service_info (void) 00102 { 00103 return this->request_service_context ().service_info (); 00104 } 00105 00106 ACE_INLINE TAO_Transport * 00107 TAO_ServerRequest::transport (void) 00108 { 00109 return this->transport_; 00110 } 00111 00112 ACE_INLINE CORBA::ULong 00113 TAO_ServerRequest::request_id (void) 00114 { 00115 return this->request_id_; 00116 } 00117 00118 ACE_INLINE void 00119 TAO_ServerRequest::request_id (CORBA::ULong req) 00120 { 00121 this->request_id_ = req; 00122 } 00123 00124 ACE_INLINE void 00125 TAO_ServerRequest::requesting_principal (const CORBA::OctetSeq &principal) 00126 { 00127 this->requesting_principal_ = principal; 00128 } 00129 00130 ACE_INLINE TAO_Tagged_Profile & 00131 TAO_ServerRequest::profile (void) 00132 { 00133 return this->profile_; 00134 } 00135 00136 ACE_INLINE void 00137 TAO_ServerRequest::forward_location (CORBA::Object_ptr forward_reference) 00138 { 00139 this->forward_location_ = 00140 CORBA::Object::_duplicate (forward_reference); 00141 } 00142 00143 ACE_INLINE CORBA::Object_ptr 00144 TAO_ServerRequest::forward_location (void) 00145 { 00146 return CORBA::Object::_duplicate (this->forward_location_.in ()); 00147 } 00148 00149 ACE_INLINE CORBA::ULong 00150 TAO_ServerRequest::exception_type (void) 00151 { 00152 return this->exception_type_; 00153 } 00154 00155 ACE_INLINE void 00156 TAO_ServerRequest::exception_type (CORBA::ULong except_type) 00157 { 00158 this->exception_type_ = except_type; 00159 } 00160 00161 ACE_INLINE void 00162 TAO_ServerRequest::is_dsi (void) 00163 { 00164 this->is_dsi_ = 1; 00165 } 00166 00167 ACE_INLINE TAO_Operation_Details const * 00168 TAO_ServerRequest::operation_details (void) const 00169 { 00170 return this->operation_details_; 00171 } 00172 00173 ACE_INLINE void 00174 TAO_ServerRequest::dsi_nvlist_align (ptrdiff_t alignment) 00175 { 00176 this->dsi_nvlist_align_ = alignment; 00177 } 00178 00179 ACE_INLINE CORBA::Boolean 00180 TAO_ServerRequest::argument_flag (void) 00181 { 00182 return this->argument_flag_; 00183 } 00184 00185 ACE_INLINE void 00186 TAO_ServerRequest::argument_flag (CORBA::Boolean flag) 00187 { 00188 this->argument_flag_ = flag; 00189 } 00190 00191 ACE_INLINE bool 00192 TAO_ServerRequest::collocated (void) const 00193 { 00194 return this->transport_ == 0; 00195 } 00196 00197 00198 #if TAO_HAS_INTERCEPTORS == 1 00199 ACE_INLINE size_t & 00200 TAO_ServerRequest::interceptor_count (void) 00201 { 00202 return this->interceptor_count_; 00203 } 00204 00205 ACE_INLINE int 00206 TAO_ServerRequest::got_result (void) 00207 { 00208 if (this->result_seq_.ptr () == 0) 00209 return 0; 00210 00211 return 1; 00212 } 00213 00214 ACE_INLINE void 00215 TAO_ServerRequest::result_seq (CORBA::OctetSeq &ocs) 00216 { 00217 this->result_seq_ = ocs; 00218 } 00219 00220 ACE_INLINE CORBA::Exception * 00221 TAO_ServerRequest::caught_exception (void) 00222 { 00223 return this->caught_exception_; 00224 } 00225 00226 ACE_INLINE void 00227 TAO_ServerRequest::reply_status (PortableInterceptor::ReplyStatus s) 00228 { 00229 this->reply_status_ = s; 00230 } 00231 00232 ACE_INLINE PortableInterceptor::ReplyStatus 00233 TAO_ServerRequest::reply_status (void) 00234 { 00235 return this->reply_status_; 00236 } 00237 00238 #endif /* TAO_HAS_INTERCEPTORS == 1 */ 00239 00240 TAO_END_VERSIONED_NAMESPACE_DECL