You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/04/04 13:35:29 UTC

svn commit: r1088563 - /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java

Author: veithen
Date: Mon Apr  4 11:35:29 2011
New Revision: 1088563

URL: http://svn.apache.org/viewvc?rev=1088563&view=rev
Log:
AXIOM-353: Added a createStAXSOAPModelBuilder method to the new OMXMLBuilderFactory.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java?rev=1088563&r1=1088562&r2=1088563&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java Mon Apr  4 11:35:29 2011
@@ -180,6 +180,19 @@ public class OMXMLBuilderFactory {
     }
     
     /**
+     * Create an object model builder for SOAP that pulls events from a StAX stream reader.
+     * The method will select the appropriate {@link SOAPFactory}
+     * based on the namespace URI of the SOAP envelope.
+     * 
+     * @param parser
+     *            the stream reader to read the XML data from
+     * @return the builder
+     */
+    public static SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser) {
+        return OMAbstractFactory.getMetaFactory().createStAXSOAPModelBuilder(parser);
+    }
+    
+    /**
      * Create an object model builder for SOAP that reads a message from the provided input stream,
      * using a given charset encoding. The method will select the appropriate {@link SOAPFactory}
      * based on the namespace URI of the SOAP envelope. It will configure the underlying parser as