axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hawk...@apache.org
Subject cvs commit: ws-axis/c/include/axis IHeaderBlock.hpp
Date Tue, 22 Feb 2005 14:31:15 GMT
hawkeye     2005/02/22 06:31:15

  Modified:    c/src/soap HeaderBlock.cpp
               c/include/axis IHeaderBlock.hpp
  Log:
  Changed docs on IHeaderBlock so that we absolve ourselves when the user uses createAttribute
incorrectly.
  Also changed the implementation so that if the localname or prefix on getAttribute is NULL
then we search for ""
  
  Revision  Changes    Path
  1.50      +9 -0      ws-axis/c/src/soap/HeaderBlock.cpp
  
  Index: HeaderBlock.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/soap/HeaderBlock.cpp,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- HeaderBlock.cpp	22 Feb 2005 12:02:30 -0000	1.49
  +++ HeaderBlock.cpp	22 Feb 2005 14:31:15 -0000	1.50
  @@ -702,6 +702,15 @@
   const AxisChar* HeaderBlock::getAttributeValue(const AxisChar *localname,
                                            const AxisChar *prefix)
   {
  +     if(!localname)
  +     {
  +        localname="";
  +     }
  +     if(!prefix)
  +     {
  +        prefix="";
  +     }
  + 
      	list<Attribute*>::iterator itAttr = m_attributes.begin();
    	while (itAttr != m_attributes.end()) 
    	{
  
  
  
  1.11      +8 -1      ws-axis/c/include/axis/IHeaderBlock.hpp
  
  Index: IHeaderBlock.hpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/include/axis/IHeaderBlock.hpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- IHeaderBlock.hpp	22 Feb 2005 12:02:30 -0000	1.10
  +++ IHeaderBlock.hpp	22 Feb 2005 14:31:15 -0000	1.11
  @@ -166,7 +166,11 @@
           eStdAttrType, SOAP_VERSION eSOAP_VERSION) =0;
   
       /**
  -      * Creates a Attribute and adds it to this Header Block.
  +      * Creates a Attribute and adds it to this Header Block. 
  +      * NOTE: No checking is done to see if this attribute creation applies to the xsd
rules. 
  +      * We expect that the server side will fail.
  +      * e.g. If creating more than one attribute with the same name the outcome is undefined
  +      * 
         *
         * @param localname The local name of the attribute.
         * @param prefix The prefix of the attribute.
  @@ -181,6 +185,9 @@
   
       /**
         * Creates a Attribute and adds it to this Header Block.
  +      * NOTE: No checking is done to see if this attribute creation applies to the xsd
rules. 
  +      * We expect that the server side will fail.
  +      * e.g. If creating more than one attribute with the same name the outcome is undefined
         *
         * @param localname The local name of the attribute.
         * @param prefix The prefix of the attribute.
  
  
  

Mime
View raw message