axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/message MessageElement.java SOAPEnvelope.java
Date Wed, 09 Jan 2002 20:43:05 GMT
dims        02/01/09 12:43:05

  Modified:    java/src/org/apache/axis/message MessageElement.java
                        SOAPEnvelope.java
  Log:
  - Reuse Attributes stored in MessageElement.
  - Helper method for adding more namespaces if necessary.
  
  Revision  Changes    Path
  1.69      +4 -0      xml-axis/java/src/org/apache/axis/message/MessageElement.java
  
  Index: MessageElement.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/MessageElement.java,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- MessageElement.java	9 Jan 2002 14:48:18 -0000	1.68
  +++ MessageElement.java	9 Jan 2002 20:43:05 -0000	1.69
  @@ -487,4 +487,8 @@
               return( null );
           }
       }
  +
  +    public void addMapping(Mapping map) {
  +        namespaces.add(map);
  +    }
   }
  
  
  
  1.48      +5 -5      xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java
  
  Index: SOAPEnvelope.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/message/SOAPEnvelope.java,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- SOAPEnvelope.java	3 Jan 2002 17:12:36 -0000	1.47
  +++ SOAPEnvelope.java	9 Jan 2002 20:43:05 -0000	1.48
  @@ -84,7 +84,7 @@
       public Vector bodyElements = new Vector();
       public Vector trailers = new Vector();
       public String encodingStyleURI = null;
  -    
  +
       // This is a hint to any service description to tell it what
       // "type" of message we are.  This might be "request", "response",
       // or anything else your particular service descripton requires.
  @@ -325,17 +325,17 @@
           }
           
           Enumeration enum;
  -        AttributesImpl attrs = null;
           if (encodingStyleURI != null) {
  -            attrs = new AttributesImpl();
  -            attrs.addAttribute(Constants.URI_SOAP_ENV,
  +            if(attributes == null)
  +                attributes = new AttributesImpl();
  +            attributes.addAttribute(Constants.URI_SOAP_ENV,
                                  Constants.ATTR_ENCODING_STYLE,
                                  "SOAP-ENV:" + Constants.ATTR_ENCODING_STYLE,
                                  "CDATA", encodingStyleURI);
           }
           
           context.startElement(new QName(Constants.URI_SOAP_ENV,
  -                                       Constants.ELEM_ENVELOPE), attrs);
  +                                       Constants.ELEM_ENVELOPE), attributes);
           
           if (category.isDebugEnabled())
               category.debug(headers.size() + " "
  
  
  

Mime
View raw message