You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ro...@apache.org on 2004/06/14 09:25:28 UTC

cvs commit: ws-axis/c/samples/server/echoStringHeaderHandler ESHHandler.h ESHHandler.cpp

roshan      2004/06/14 00:25:28

  Modified:    c/samples/server/echoStringHeaderHandler ESHHandler.h
                        ESHHandler.cpp
  Log:
  /*
   * Removed the declarations of getOption(const string& sArg) and
   *  setOptionList(const map<string, string>* OptionList), because these methods
   *  are not needed to be implemented by the users. These are generic methods.
   *  Added the implementations of these methods to the Handler base class.
   */
  
  Revision  Changes    Path
  1.8       +9 -7      ws-axis/c/samples/server/echoStringHeaderHandler/ESHHandler.h
  
  Index: ESHHandler.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/echoStringHeaderHandler/ESHHandler.h,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ESHHandler.h	27 Apr 2004 03:23:06 -0000	1.7
  +++ ESHHandler.h	14 Jun 2004 07:25:27 -0000	1.8
  @@ -17,6 +17,14 @@
    *
    */
   
  +/*
  + * Revision 1.1  2004/06/14 roshan
  + * Removed the declarations of getOption(const string& sArg) and 
  + *  setOptionList(const map<string, string>* OptionList), because these methods
  + *  are not needed to be implemented by the users. These are generic methods.
  + *  Added the implementations of these methods to the Handler base class.
  + */
  +
   #if !defined(_ESHHANDLER_H____OF_AXIS_INCLUDED_)
   #define _ESHHANDLER_H____OF_AXIS_INCLUDED_
   
  @@ -29,14 +37,8 @@
   	int AXISCALL init();
   	void AXISCALL onFault(void* pvIMsg);
   	int AXISCALL invoke(void* pvIMsg);
  -	void setOptionList(const map<string, string>* OptionList);
  -	const string& getOption(const string& sArg);
   	ESHHandler();
  -	virtual ~ESHHandler();
  -
  -protected:
  -    string m_sEmpty;    
  -
  +	virtual ~ESHHandler();    
   };
   
   #endif // !defined(_ESHHANDLER_H____OF_AXIS_INCLUDED_)
  
  
  
  1.13      +8 -19     ws-axis/c/samples/server/echoStringHeaderHandler/ESHHandler.cpp
  
  Index: ESHHandler.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/server/echoStringHeaderHandler/ESHHandler.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ESHHandler.cpp	27 Apr 2004 03:23:06 -0000	1.12
  +++ ESHHandler.cpp	14 Jun 2004 07:25:27 -0000	1.13
  @@ -18,6 +18,14 @@
    *
    */
   
  +/*
  + * Revision 1.1  2004/06/14 roshan
  + * Removed the implementations of getOption(const string& sArg) and 
  + *  setOptionList(const map<string, string>* OptionList), because these methods
  + *  are not needed to be implemented by the users. These are generic methods.
  + *  Added the implementations of these methods to the Handler base class.
  + */
  +
   #include "ESHHandler.h"
   #include <axis/server/GDefine.h>
   #include <axis/server/IHandlerSoapSerializer.h>
  @@ -33,29 +41,10 @@
   
   ESHHandler::ESHHandler()
   {
  -    m_pOption = NULL;
  -    m_sEmpty = "";
  -
   }
   
   ESHHandler::~ESHHandler()
   {
  -
  -}
  -
  -const string& ESHHandler::getOption(const string& sArg)
  -{
  -  map<string, string>::const_iterator it = m_pOption->find(sArg);
  -  if (it != m_pOption->end())
  -  {
  -      return (*it).second;
  -  }
  -  return m_sEmpty;	
  -}
  -
  -void ESHHandler::setOptionList(const map<string, string>* OptionList)
  -{
  -   m_pOption = OptionList;
   }
   
   int ESHHandler::invoke(void *pvIMsg)