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 sa...@apache.org on 2004/05/21 07:17:33 UTC

cvs commit: ws-axis/c/include/axis/server AxisConfig.h

sanjaya     2004/05/20 22:17:33

  Modified:    c/include/axis/server AxisConfig.h
  Log:
  changes to parsing the axiscpp.conf (axisconfiguration file)
  
  Revision  Changes    Path
  1.9       +11 -34    ws-axis/c/include/axis/server/AxisConfig.h
  
  Index: AxisConfig.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/include/axis/server/AxisConfig.h,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AxisConfig.h	6 May 2004 03:55:18 -0000	1.8
  +++ AxisConfig.h	21 May 2004 05:17:33 -0000	1.9
  @@ -18,6 +18,7 @@
   #define __AXIS_AXISCONFIG_H_OF_AXIS_INCLUDED__
   
   #define CONFBUFFSIZE 256
  +#define NOOFPROPERTIES 7
   
   /**
    *   @class AxisConfig
  @@ -33,6 +34,10 @@
    *   @author Damitha Kumarage (damitha@opensource.lk, damitha@jkcsworld.com)
    */
   
  +enum g_axconfig {AXCONF_WSDDFILEPATH, AXCONF_LOGPATH, AXCONF_CLIENTLOGPATH, 
  +				 AXCONF_CLIENTWSDDFILEPATH, AXCONF_AXISHOME, 
  +				 AXCONF_TRANSPORTHTTP, AXCONF_TRANSPORTSMTP, AXCONF_XMLPARSER};
  +
   class AxisConfig
   {
       public:
  @@ -40,34 +45,6 @@
       ~AxisConfig();
   
       /**
  -     * This is called to get the server.wsdd file path.
  -     * 
  -     * @return the server.wsdd file path 
  -     */
  -    char* getWsddFilePath();
  -
  -    /**
  -     * This is called to get the AxisLog file path.
  -     *
  -     * @return the AxisLog file path.
  -     */
  -    char* getAxisLogPath();
  -
  -    /**
  -     * This is called to get the AxisClientLog file path.
  -     *
  -     * @return the AxisClientLog file path.
  -     */
  -    char* AxisConfig::getAxisClientLogPath ();    
  -
  -    /**
  -     * This is called to get the client.wsdd file path.
  -     * 
  -     * @return the client.wsdd file path 
  -     */
  -    char* getClientWsddFilePath();
  -
  -    /**
        * This method will read from the configuration file called axiscpp.conf
        * which is located in a place defined by AXIS_HOME environment variable. 
        *
  @@ -77,18 +54,18 @@
       int readConfFile();
   
       /**
  -     * This is called to get the value of $AXIS_HOME env variable.
  +     * This is called to get the value of a property as defined by the g_axconfig
  +	 * enumeration.
        * 
        * @return the $AXIS_HOME value
        */
  -    char* getAxisHomePath();
  +
  +	char* getAxConfProperty(g_axconfig property);
           
       private:         
           char* m_pcAxisHome;
  -        char* m_pcWsddFilePath;
  -        char* m_pcAxisLogPath;
  -        char* m_pcAxisClientLogPath;
  -        char* m_pcClientWsddFilePath;
  +		char* m_pcKeyArray [NOOFPROPERTIES];
  +		char* m_pcValueArray [NOOFPROPERTIES];
   };
   #endif