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 pr...@apache.org on 2005/02/24 18:02:11 UTC

cvs commit: ws-axis/c/src/transport/axis3 HTTPTransport.cpp HTTPTransport.hpp IChannel.hpp

prestonf    2005/02/24 09:02:11

  Modified:    c/src/transport/axis3 HTTPTransport.cpp HTTPTransport.hpp
                        IChannel.hpp
  Log:
  Hi All,
  I think this will complete what needs to be done for AXISCPP-478.
  
  Regards,
  Fred Preston.
  
  Revision  Changes    Path
  1.14      +9 -4      ws-axis/c/src/transport/axis3/HTTPTransport.cpp
  
  Index: HTTPTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- HTTPTransport.cpp	8 Feb 2005 17:50:08 -0000	1.13
  +++ HTTPTransport.cpp	24 Feb 2005 17:02:11 -0000	1.14
  @@ -715,9 +715,10 @@
    * @param const char* Value is a NULL terminated character string containing
    * the value associated with the type.
    */
  -void HTTPTransport::setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE type, const char *value) throw (HTTPTransportException)
  +int HTTPTransport::setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE type, const char *value) throw (HTTPTransportException)
   {
       const char *key = NULL;
  +	int			iSuccess = AXIS_SUCCESS;
   
       switch (type)
       {
  @@ -752,7 +753,7 @@
   
   		case SECURE_PROPERTIES:
   		{
  -			m_pActiveChannel->setSecureProperties( value);
  +			iSuccess = m_pActiveChannel->setSecureProperties( value);
   
   			break;
   		}
  @@ -779,6 +780,8 @@
       {
   		setTransportProperty( key, value);
       }
  +
  +	return iSuccess;
   }
   
   /* HTTPTransport::setTransportProperty( Key, Value) Is an overloaded public
  @@ -790,11 +793,11 @@
    * @param const char* Value is a NULL terminated character string containing
    * the value associated with the type.
    */
  -void HTTPTransport::setTransportProperty( const char *pcKey, const char *pcValue) throw (HTTPTransportException)
  +int HTTPTransport::setTransportProperty( const char *pcKey, const char *pcValue) throw (HTTPTransportException)
   {
       if( !pcKey || !pcValue)	// Samisa - fix for AXISCPP-295. We must check for valid values here.
   	{
  -		return;
  +		return AXIS_SUCCESS;
   	}
   
       bool b_KeyFound = false;
  @@ -820,6 +823,8 @@
       {
   		m_vHTTPHeaders.push_back( std::make_pair( (string) pcKey, (string) pcValue));
       }
  +
  +	return AXIS_SUCCESS;
   }
   
   /* HTTPTransport::getTransportProperty( Type) Is a public method that will
  
  
  
  1.6       +2 -2      ws-axis/c/src/transport/axis3/HTTPTransport.hpp
  
  Index: HTTPTransport.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/HTTPTransport.hpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HTTPTransport.hpp	8 Feb 2005 17:50:08 -0000	1.5
  +++ HTTPTransport.hpp	24 Feb 2005 17:02:11 -0000	1.6
  @@ -51,9 +51,9 @@
       void					closeConnection();
       AXIS_TRANSPORT_STATUS	sendBytes( const char *, const void *);
       AXIS_TRANSPORT_STATUS	getBytes( char *, int *) throw (AxisException, HTTPTransportException);
  -    void					setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE, const char *) throw (HTTPTransportException);
  +    int						setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE, const char *) throw (HTTPTransportException);
       const char *			getTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE) throw (HTTPTransportException);
  -    void					setTransportProperty( const char *, const char *) throw (HTTPTransportException);
  +    int						setTransportProperty( const char *, const char *) throw (HTTPTransportException);
       const char *			getTransportProperty( const char * pcKey) throw (HTTPTransportException);
       void					setSessionId( const char * pcSessionId);
       const char *			getSessionId();
  
  
  
  1.5       +1 -1      ws-axis/c/src/transport/axis3/IChannel.hpp
  
  Index: IChannel.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/transport/axis3/IChannel.hpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- IChannel.hpp	25 Jan 2005 11:21:51 -0000	1.4
  +++ IChannel.hpp	24 Feb 2005 17:02:11 -0000	1.5
  @@ -29,7 +29,7 @@
       virtual const std::string&	GetLastErrorMsg()=0;
       virtual const IChannel&		operator >> (const char * msg)=0;
       virtual const IChannel&		operator << (const char * msg)=0;
  -	virtual void				setSecureProperties( const char *) {};
  +	virtual int					setSecureProperties( const char *) {return true;};
   	virtual const char *		getSecureProperties() {return NULL;};
       virtual void				setTimeout( const long lSeconds)=0;
       virtual void				setSocket( unsigned int uiNewSocket)=0;