00001 // $Id: DII_Reply_Handler.cpp 84443 2009-02-12 20:26:35Z johnnyw $ 00002 00003 #include "Request.h" 00004 #include "ExceptionList.h" 00005 #include "DII_Invocation.h" 00006 #if defined (TAO_HAS_AMI) 00007 #include "DII_Reply_Handler.h" 00008 #endif /* TAO_HAS_AMI */ 00009 00010 #include "tao/Object.h" 00011 #include "tao/Pluggable_Messaging_Utils.h" 00012 00013 ACE_RCSID(DynamicInterface, Request, "$Id: DII_Reply_Handler.cpp 84443 2009-02-12 20:26:35Z johnnyw $") 00014 00015 #if !defined (__ACE_INLINE__) 00016 # include "DII_Reply_Handler.inl" 00017 #endif /* ! __ACE_INLINE__ */ 00018 00019 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00020 00021 // The pseudo-object _nil method. 00022 TAO_DII_Reply_Handler_ptr 00023 TAO_DII_Reply_Handler::_nil (void) 00024 { 00025 return static_cast<TAO_DII_Reply_Handler_ptr> (0); 00026 } 00027 00028 // DII Request class implementation 00029 int TAO_DII_Reply_Handler::_tao_class_id = 0; 00030 TAO_DII_Reply_Handler::TAO_DII_Reply_Handler () 00031 { 00032 } 00033 00034 TAO_DII_Reply_Handler::~TAO_DII_Reply_Handler (void) 00035 { 00036 } 00037 00038 TAO_DII_Reply_Handler_ptr 00039 TAO_DII_Reply_Handler::_narrow (CORBA::Object_ptr obj) 00040 { 00041 return TAO_DII_Reply_Handler::_unchecked_narrow (obj); 00042 } 00043 00044 TAO_DII_Reply_Handler_ptr 00045 TAO_DII_Reply_Handler::_unchecked_narrow (CORBA::Object_ptr obj) 00046 { 00047 if (CORBA::is_nil (obj)) 00048 return TAO_DII_Reply_Handler::_nil (); 00049 00050 return 00051 reinterpret_cast<TAO_DII_Reply_Handler_ptr> ( 00052 &TAO_DII_Reply_Handler::_tao_class_id); 00053 } 00054 00055 void 00056 TAO_DII_Reply_Handler::handle_location_forward (TAO_InputCDR &incoming, 00057 CORBA::ULong reply_status) 00058 { 00059 if (TAO_debug_level > 3) 00060 { 00061 ACE_DEBUG ((LM_DEBUG, 00062 ACE_TEXT("TAO (%P|%t) Base DII_Reply_Handler::") 00063 ACE_TEXT("handle_location_forward called, ") 00064 ACE_TEXT("reply_status = %d\n"), 00065 reply_status)); 00066 } 00067 this->handle_response (incoming); 00068 } 00069 00070 TAO_END_VERSIONED_NAMESPACE_DECL