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 pr...@apache.org on 2005/01/11 12:43:48 UTC

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

prestonf    2005/01/11 03:43:48

  Modified:    c/src/transport/axis3 HTTPTransport.cpp IChannel.hpp
  Log:
  Hi All,
  These are modifications needed for the draft of the new http transport implementation AXIS3 (see AXISCPP-361).
  Regards,
  Fred Preston.
  
  Revision  Changes    Path
  1.4       +12 -6     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.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HTTPTransport.cpp	10 Jan 2005 15:25:43 -0000	1.3
  +++ HTTPTransport.cpp	11 Jan 2005 11:43:47 -0000	1.4
  @@ -180,17 +180,15 @@
    * HTTPTransport::openConnection().
    */
   
  -int HTTPTransport::openConnection ()
  +int HTTPTransport::openConnection()
   {
  -	m_pActiveChannel->open();
  -
  -    return AXIS_SUCCESS;
  +	return m_pActiveChannel->open();
   }
   
   /*
    * HTTPTransport::closeConnection().
    */
  -void HTTPTransport::closeConnection ()
  +void HTTPTransport::closeConnection()
   {
       // get ready for a new message.
       m_bReadPastHTTPHeaders = false;
  @@ -199,6 +197,8 @@
       m_strReceived = "";
   
       m_iContentLength = 0;
  +
  +	m_pActiveChannel->close();
   }
   
   /*
  @@ -736,9 +736,15 @@
   		}
   
   		case TRANSPORT_PROPERTIES:
  -		case SECURE_PROPERTIES:
   		{
   			m_pActiveChannel->setTransportProperty( type, value);
  +
  +			break;
  +		}
  +
  +		case SECURE_PROPERTIES:
  +		{
  +			m_pActiveChannel->setSecureProperties( value);
   
   			break;
   		}
  
  
  
  1.3       +3 -3      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- IChannel.hpp	7 Jan 2005 15:22:42 -0000	1.2
  +++ IChannel.hpp	11 Jan 2005 11:43:48 -0000	1.3
  @@ -18,12 +18,12 @@
   	virtual void				setURL( const char* cpURL)=0;
       virtual URL &				getURLObject()=0;
       virtual bool				open() throw (HTTPTransportException&)=0;
  +    virtual bool				close()=0;
       virtual const std::string&	GetLastErrorMsg()=0;
  -//    virtual const IChannel&		operator >> (std::string& msg)=0;
       virtual const IChannel&		operator >> (const char * msg)=0;
       virtual const IChannel&		operator << (const char * msg)=0;
  -//	virtual void				setSecureProperties( const char *)=0;
  -//	virtual const char *		getSecureProperties()=0;
  +	virtual void				setSecureProperties( const char *) {};
  +	virtual const char *		getSecureProperties() {return NULL;};
       virtual void				setTimeout( const long lSeconds)=0;
       virtual void				setSocket( unsigned int uiNewSocket)=0;
   	virtual bool				setTransportProperty( AXIS_TRANSPORT_INFORMATION_TYPE type, const char* value)=0;