00001 // -*- C++ -*- 00002 00003 // =================================================================== 00004 /** 00005 * @file Service_Context_Handler.h 00006 * 00007 * $Id: Service_Context_Handler.h 84860 2009-03-17 10:17:38Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 // =================================================================== 00012 00013 #ifndef TAO_SERVICE_CONTEXT_HANDLER_H 00014 #define TAO_SERVICE_CONTEXT_HANDLER_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/IOPC.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00025 00026 class TAO_Transport; 00027 class TAO_Operation_Details; 00028 class TAO_Target_Specification; 00029 class TAO_Stub; 00030 00031 /** 00032 * This is the base of handler classes that each can process a certain 00033 * service context. This way optional libraries can plugin handlers to the 00034 * core of TAO. Each handler has to be registered in the Service Context 00035 * Handler registry 00036 */ 00037 class TAO_Export TAO_Service_Context_Handler 00038 { 00039 public: 00040 TAO_Service_Context_Handler (void); 00041 virtual int process_service_context ( 00042 TAO_Transport& transport, 00043 const IOP::ServiceContext& context) = 0; 00044 00045 virtual int generate_service_context ( 00046 TAO_Stub *stub, 00047 TAO_Transport& transport, 00048 TAO_Operation_Details &opdetails, 00049 TAO_Target_Specification &spec, 00050 TAO_OutputCDR &msg) = 0; 00051 00052 virtual ~TAO_Service_Context_Handler (void); 00053 }; 00054 00055 TAO_END_VERSIONED_NAMESPACE_DECL 00056 00057 #include /**/ "ace/post.h" 00058 00059 #endif /* TAO_SERVICE_CONTEXT_HANDLER_H */