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 di...@apache.org on 2005/06/21 00:49:44 UTC

cvs commit: ws-axis/java/src/org/apache/axis/message EnvelopeBuilder.java SOAPEnvelope.java

dims        2005/06/20 15:49:44

  Modified:    java/src/org/apache/axis/message EnvelopeBuilder.java
                        SOAPEnvelope.java
  Log:
  Fix for AXIS-2069 - SAX2EventRecorder.replay called even after message is validly marked dirty
  
  from David Blevins
  
  Revision  Changes    Path
  1.37      +1 -0      ws-axis/java/src/org/apache/axis/message/EnvelopeBuilder.java
  
  Index: EnvelopeBuilder.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/EnvelopeBuilder.java,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- EnvelopeBuilder.java	25 Feb 2004 14:02:42 -0000	1.36
  +++ EnvelopeBuilder.java	20 Jun 2005 22:49:44 -0000	1.37
  @@ -200,5 +200,6 @@
       {
           // Envelope isn't dirty yet by default...
           envelope.setDirty(false);
  +        envelope.setRecorded(true);
       }
   }
  
  
  
  1.107     +17 -0     ws-axis/java/src/org/apache/axis/message/SOAPEnvelope.java
  
  Index: SOAPEnvelope.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/message/SOAPEnvelope.java,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- SOAPEnvelope.java	18 Feb 2005 13:03:57 -0000	1.106
  +++ SOAPEnvelope.java	20 Jun 2005 22:49:44 -0000	1.107
  @@ -67,6 +67,7 @@
       // This gets passed back into the service description during
       // deserialization
       public String messageType;
  +    private boolean recorded;
   
       public SOAPEnvelope()
       {
  @@ -672,4 +673,20 @@
               setOwnerDocumentForChildren(node.children, sp);  // recursively
       	}
       }
  +
  +    public void setRecorded(boolean recorded) {
  +        this.recorded = recorded;
  +    }
  +
  +    public boolean isRecorded() {
  +        return recorded;
  +    }
  +
  +    public void setDirty(boolean dirty) {
  +        if (recorder != null && !_isDirty && dirty && isRecorded()){
  +            recorder.clear();
  +            recorder = null;
  +        }
  +        super.setDirty(dirty);
  +    }
   }