You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2003/10/21 08:04:23 UTC

cvs commit: ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler ESHHandler.cpp ESHHandler.h runconfig

damitha     2003/10/20 23:04:23

  Modified:    c/include/axis/wsdd WSDDDefines.h
               c/src/server/handlers/custom/echoStringHeaderHandler
                        ESHHandler.cpp ESHHandler.h runconfig
  Log:
  again these are changes due to the restructuring of include files.
  
  Revision  Changes    Path
  1.2       +1 -1      ws-axis/c/include/axis/wsdd/WSDDDefines.h
  
  Index: WSDDDefines.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/include/axis/wsdd/WSDDDefines.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- WSDDDefines.h	20 Oct 2003 03:18:20 -0000	1.1
  +++ WSDDDefines.h	21 Oct 2003 06:04:23 -0000	1.2
  @@ -73,4 +73,4 @@
   	COM_PROVIDER
   };
   
  -#endif
  \ No newline at end of file
  +#endif
  
  
  
  1.6       +11 -9     ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/ESHHandler.cpp
  
  Index: ESHHandler.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/ESHHandler.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ESHHandler.cpp	20 Oct 2003 06:40:24 -0000	1.5
  +++ ESHHandler.cpp	21 Oct 2003 06:04:23 -0000	1.6
  @@ -80,6 +80,8 @@
   
   ESHHandler::ESHHandler()
   {
  +    m_pOption = NULL;
  +    m_sEmpty = "";
   
   }
   
  @@ -88,19 +90,19 @@
   
   }
   
  -string ESHHandler::GetOption(string sArg)
  +const string& ESHHandler::GetOption(const string& sArg)
   {
  -	return NULL;
  +  map<string, string>::const_iterator it = m_pOption->find(sArg);
  +  if (it != m_pOption->end())
  +  {
  +      return (*it).second;
  +  }
  +  return m_sEmpty;	
   }
   
  -void ESHHandler::SetOption(string sOption, string Value)
  +void ESHHandler::SetOptionList(const map<string, string>* OptionList)
   {
  -
  -}
  -
  -void ESHHandler::SetOptionList(map<string, string>* OptionList)
  -{
  -
  +   m_pOption = OptionList;
   }
   
   int ESHHandler::Invoke(IMessageData *pIMsg)
  
  
  
  1.4       +5 -3      ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/ESHHandler.h
  
  Index: ESHHandler.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/ESHHandler.h,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ESHHandler.h	20 Oct 2003 06:40:24 -0000	1.3
  +++ ESHHandler.h	21 Oct 2003 06:04:23 -0000	1.4
  @@ -81,11 +81,13 @@
   	int Init();
   	void OnFault(IMessageData* pIMsg);
   	int Invoke(IMessageData* pIMsg);
  -	void SetOptionList(map<string, string>* OptionList);
  -	void SetOption(string sOption, string Value);
  -	string GetOption(string sArg);
  +	void SetOptionList(const map<string, string>* OptionList);
  +	const string& GetOption(const string& sArg);
   	ESHHandler();
   	virtual ~ESHHandler();
  +
  +protected:
  +    string m_sEmpty;    
   
   };
   
  
  
  
  1.2       +1 -1      ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/runconfig
  
  Index: runconfig
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/handlers/custom/echoStringHeaderHandler/runconfig,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- runconfig	2 Oct 2003 06:06:15 -0000	1.1
  +++ runconfig	21 Oct 2003 06:04:23 -0000	1.2
  @@ -1,2 +1,2 @@
   #!/bin/bash
  -configure --libdir=$AXISCPP_HOME/src/server/handlers/custom/echoStringHeaderHandler/lib
  +configure --libdir=$AXIS_HOME/handlers/custom/echoStringHeaderHandler