2 #include "tao/SystemException.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 TAO::CSD::FW_Server_Request_Wrapper::FW_Server_Request_Wrapper
8 (TAO_ServerRequest& server_request)
10 request_(&server_request)
17 TAO::CSD::FW_Server_Request_Wrapper::clone()
19 // Only clone the TAO_Server_Request object if we have not performed the
20 // clone already. This really should only be called once, but this code
21 // makes sure that we do not introduce a leak.
24 this->request_ = this->clone (this->request_);
25 this->is_clone_ = true;
32 TAO::CSD::FW_Server_Request_Wrapper::cancel()
34 // We only need to handle remote requests that are expecting a reply.
35 if (!this->request_->collocated() &&
36 !this->request_->sync_with_server() &&
37 this->request_->response_expected() &&
38 !this->request_->deferred_reply())
40 CORBA::NO_IMPLEMENT ex;
41 this->request_->tao_send_reply_exception(ex);
45 TAO_END_VERSIONED_NAMESPACE_DECL