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 2012/02/28 22:45:05 UTC
svn commit: r1294849 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMXMLBuilderFactory.java
Author: veithen
Date: Tue Feb 28 21:45:05 2012
New Revision: 1294849
URL: http://svn.apache.org/viewvc?rev=1294849&view=rev
Log:
AXIOM-353: Added a missing method in 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=1294849&r1=1294848&r2=1294849&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 Tue Feb 28 21:45:05 2012
@@ -355,6 +355,24 @@ public class OMXMLBuilderFactory {
}
/**
+ * Create an object model builder for SOAP that pulls events from a StAX stream reader and that
+ * uses a particular Axiom implementation. The method will select the appropriate
+ * {@link SOAPFactory} based on the namespace URI of the SOAP envelope.
+ * <p>
+ * See {@link #createStAXOMBuilder(XMLStreamReader)} for more information about the behavior of
+ * the returned builder.
+ *
+ * @param metaFactory
+ * the meta factory for the Axiom implementation to use
+ * @param parser
+ * the stream reader to read the XML data from
+ * @return the builder
+ */
+ public static SOAPModelBuilder createStAXSOAPModelBuilder(OMMetaFactory metaFactory, XMLStreamReader parser) {
+ return metaFactory.createStAXSOAPModelBuilder(parser);
+ }
+
+ /**
* 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.