00001 // $Id: Codeset_Service_Context_Handler.cpp 84863 2009-03-17 11:04:36Z johnnyw $ 00002 00003 #include "tao/Codeset/Codeset_Service_Context_Handler.h" 00004 00005 ACE_RCSID (Codeset, 00006 Codeset_Service_Context_Handler, 00007 "$Id: Codeset_Service_Context_Handler.cpp 84863 2009-03-17 11:04:36Z johnnyw $") 00008 00009 #include "tao/CDR.h" 00010 #include "tao/Transport.h" 00011 #include "tao/ORB_Core.h" 00012 #include "tao/operation_details.h" 00013 #include "tao/Codeset_Manager.h" 00014 00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00016 00017 int 00018 TAO_Codeset_Service_Context_Handler::process_service_context ( 00019 TAO_Transport&, 00020 const IOP::ServiceContext&) 00021 { 00022 return 0; 00023 } 00024 00025 int 00026 TAO_Codeset_Service_Context_Handler::generate_service_context ( 00027 TAO_Stub *, 00028 TAO_Transport& transport, 00029 TAO_Operation_Details &opdetails, 00030 TAO_Target_Specification &, 00031 TAO_OutputCDR &) 00032 { 00033 if (transport.first_request ()) 00034 { 00035 TAO_Codeset_Manager * const csm = transport.orb_core ()->codeset_manager (); 00036 if (csm) 00037 { 00038 csm->generate_service_context (opdetails, transport); 00039 } 00040 } 00041 00042 return 0; 00043 } 00044 00045 TAO_END_VERSIONED_NAMESPACE_DECL