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.java
Date Wed, 12 Dec 2001 17:35:11 GMT
dims        01/12/12 09:35:11

  Modified:    java/src/org/apache/axis Message.java
  Log:
  - Added a small helper for getSOAPPart().getAsSOAPEnvelope()
  
  There are 19 occurances of this pattern in the code. (Can i clean them up? Replace getSOAPPart().getAsSOAPEnvelope()
with getSOAPEnvelope()?)
  
  Revision  Changes    Path
  1.58      +8 -0      xml-axis/java/src/org/apache/axis/Message.java
  
  Index: Message.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Message.java,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- Message.java	2001/12/04 21:59:04	1.57
  +++ Message.java	2001/12/12 17:35:11	1.58
  @@ -56,6 +56,7 @@
   package org.apache.axis;
   
   import org.apache.axis.attachments.Attachments;
  +import org.apache.axis.message.SOAPEnvelope;
   import org.apache.log4j.Category;
   
   import java.lang.reflect.Constructor;
  @@ -265,6 +266,13 @@
           return mSOAPPart;
       }
   
  +    /**
  +     * Get this message's SOAPPart as a SOAPEnvelope 
  +     */
  +    public SOAPEnvelope getSOAPEnvelope() throws AxisFault {
  +        return mSOAPPart.getAsSOAPEnvelope();
  +    }
  +    
       /**
        * Get the Attachments of this Message.
        * If this returns null, then NO ATTACHMENT SUPPORT EXISTS in this
  
  
  

Mime
View raw message