axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/message SOAPHandler.java
Date Mon, 15 Nov 2004 05:33:22 GMT
gawor       2004/11/14 21:33:22

  Modified:    java/src/org/apache/axis/message SOAPHandler.java
  Log:
  removed addTextNode() call, seems unecessary since MessageElement has the entire recorder.
all tests passed
  
  Revision  Changes    Path
  1.18      +3 -18     ws-axis/java/src/org/apache/axis/message/SOAPHandler.java
  
  Index: SOAPHandler.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/SOAPHandler.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- SOAPHandler.java	29 Jul 2004 21:40:27 -0000	1.17
  +++ SOAPHandler.java	15 Nov 2004 05:33:22 -0000	1.18
  @@ -32,7 +32,6 @@
   import org.xml.sax.helpers.DefaultHandler;
   
   import javax.xml.soap.SOAPException;
  -import java.io.CharArrayWriter;
   
   public class SOAPHandler extends DefaultHandler
   {
  @@ -40,8 +39,6 @@
       private MessageElement[] myElements;
       private int myIndex = 0;
   
  -    private final CharArrayWriter val = new CharArrayWriter();
  -    
       public SOAPHandler() {
       }
   
  @@ -109,19 +106,6 @@
           throws SAXException
       {
           if (myElement != null) {
  -
  -            if (val.size() > 0) {
  -                String s = StringUtils.strip(val.toString());
  -                val.reset();
  -                if(s.length()>0){
  -                    try {
  -                        myElement.addTextNode(s);
  -                    } catch (SOAPException e) {
  -                        throw new SAXException(e);
  -                    }
  -                }
  -            }
  -
               if (myElements != null) {
                   myElements[myIndex] = myElement;
               }
  @@ -146,7 +130,8 @@
       {
       }
   
  -    public void characters(char[] chars, int start, int end) throws SAXException {
  -        val.write(chars, start, end);
  +    public void characters(char[] chars, int start, int end) 
  +        throws SAXException
  +    {
       }
   }
  
  
  

Mime
View raw message