Class OMXMLBuilderFactory
- java.lang.Object
-
- org.apache.axiom.om.OMXMLBuilderFactory
-
public class OMXMLBuilderFactory extends Object
Provides static factory methods to create various kinds of object model builders from different types of input sources. The methods defined by this class are the starting point to parse XML documents into Axiom trees.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OMXMLParserWrappercreateOMBuilder(InputStream in)Create an object model builder that reads a plain XML document from the provided input stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(InputStream in, String encoding)Create an object model builder that reads a plain XML document from the provided input stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(Reader in)Create an object model builder that reads a plain XML document from the provided character stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(SAXSource source, boolean expandEntityReferences)Create an object model builder that reads a plain XML document from the providedSAXSource.static OMXMLParserWrappercreateOMBuilder(Source source)Create an object model builder that reads a plain XML document from the providedSource.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, InputStream in)Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, InputStream in, String encoding)Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, Reader in)Create an object model builder that reads an XML document from the provided character stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, SAXSource source, boolean expandEntityReferences)Create an object model builder that reads an XML document from the providedSAXSourceusing a specified object model factory.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, Source source)Create an object model builder that reads an XML document from the providedSourceusing a specified object model factory.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, Source rootPart, OMAttachmentAccessor attachmentAccessor)static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputStream in)Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputStream in, String encoding)Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, Reader in)Create an object model builder that reads an XML document from the provided character stream using a specified object model factory and with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, Attachments attachments)Deprecated.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, MultipartBody message)Create an XOP aware model builder from the providedMultipartBodyobject using a specified object model factory and with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(OMFactory omFactory, Node node, boolean expandEntityReferences)Create an object model builder that reads an XML document from the provided DOM tree using a specified object model factory.static OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, InputStream in)Create an object model builder that reads a plain XML document from the provided input stream with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, InputStream in, String encoding)Create an object model builder that reads a plain XML document from the provided input stream with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, Reader in)Create an object model builder that reads a plain XML document from the provided character stream with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, Attachments attachments)Deprecated.static OMXMLParserWrappercreateOMBuilder(StAXParserConfiguration configuration, MultipartBody message)Create an XOP aware model builder from the providedMultipartBodyobject and with a given parser configuration.static OMXMLParserWrappercreateOMBuilder(Node node, boolean expandEntityReferences)Create an object model builder that reads a plain XML document from the provided DOM tree.static SOAPModelBuildercreateSOAPModelBuilder(InputStream in, String encoding)Create an object model builder for SOAP that reads a message from the provided input stream, using a given charset encoding.static SOAPModelBuildercreateSOAPModelBuilder(Reader in)Create an object model builder for SOAP that reads a message from the provided character stream.static SOAPModelBuildercreateSOAPModelBuilder(Source source)Create an object model builder for SOAP that reads a message from the providedSource.static SOAPModelBuildercreateSOAPModelBuilder(Attachments attachments)Deprecated.UsecreateSOAPModelBuilder(MultipartBody)insteadstatic SOAPModelBuildercreateSOAPModelBuilder(MultipartBody message)Create an MTOM aware model builder from the providedMultipartBodyobject.static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, InputStream in, String encoding)Create an object model builder for SOAP that reads a message from the provided input stream, using a particular Axiom implementation and a given charset encoding.static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, Reader in)Create an object model builder for SOAP that reads a message from the provided character stream using a particular Axiom implementation.static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, Source source)Create an object model builder for SOAP that reads a message from the providedSourceusing a particular Axiom implementation.static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, Source rootPart, OMAttachmentAccessor attachmentAccessor)static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, Attachments attachments)Deprecated.UsecreateSOAPModelBuilder(OMMetaFactory, MultipartBody)instead.static SOAPModelBuildercreateSOAPModelBuilder(OMMetaFactory metaFactory, MultipartBody message)Create an MTOM aware model builder from the providedMultipartBodyobject using a particular Axiom implementation.static OMXMLParserWrappercreateStAXOMBuilder(XMLStreamReader parser)Create an object model builder for plain XML that pulls events from a StAX stream reader.static OMXMLParserWrappercreateStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)Create an object model builder that pulls events from a StAX stream reader using a specified object model factory.static SOAPModelBuildercreateStAXSOAPModelBuilder(XMLStreamReader parser)Create an object model builder for SOAP that pulls events from a StAX stream reader.static SOAPModelBuildercreateStAXSOAPModelBuilder(OMMetaFactory metaFactory, XMLStreamReader parser)Create an object model builder for SOAP that pulls events from a StAX stream reader and that uses a particular Axiom implementation.
-
-
-
Method Detail
-
createStAXOMBuilder
public static OMXMLParserWrapper createStAXOMBuilder(XMLStreamReader parser)
Create an object model builder for plain XML that pulls events from a StAX stream reader.The reader must be positioned on a
XMLStreamConstants.START_DOCUMENTorXMLStreamConstants.START_ELEMENTevent. If the current event isXMLStreamConstants.START_DOCUMENTthen the builder will consume events up to theXMLStreamConstants.END_DOCUMENTevent. If the current event isXMLStreamConstants.START_ELEMENT, then the builder will consume events up to the correspondingXMLStreamConstants.END_ELEMENT. After the object model is completely built, the stream reader will be positioned on the event immediately following thisXMLStreamConstants.END_ELEMENTevent. This means that this method can be used in a well defined way to build an object model from a fragment (corresponding to a single element) of the document represented by the stream reader.The builder supports the
XMLStreamReaderextension defined byDataHandlerReaderas well as the legacy extension mechanism defined in the documentation ofXMLStreamReaderUtils.The returned builder also performs namespace repairing, i.e. it adds appropriate namespace declarations if undeclared namespaces appear in the StAX stream.
- Parameters:
parser- the stream reader to read the XML data from- Returns:
- the builder
- Throws:
OMException- if the stream reader is positioned on an event other thanXMLStreamConstants.START_DOCUMENTorXMLStreamConstants.START_ELEMENT
-
createStAXOMBuilder
public static OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
Create an object model builder that pulls events from a StAX stream reader using a specified object model factory.See
createStAXOMBuilder(XMLStreamReader)for more information about the behavior of the returned builder.- Parameters:
omFactory- the object model factory to useparser- the stream reader to read the XML data from- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(InputStream in)
Create an object model builder that reads a plain XML document from the provided input stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
in- the input stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(InputStream in, String encoding)
Create an object model builder that reads a plain XML document from the provided input stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
in- the input stream representing the XML documentencoding- the charset encoding of the XML document ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, InputStream in)
Create an object model builder that reads a plain XML document from the provided input stream with a given parser configuration.- Parameters:
configuration- the parser configuration to usein- the input stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, InputStream in, String encoding)
Create an object model builder that reads a plain XML document from the provided input stream with a given parser configuration.- Parameters:
configuration- the parser configuration to usein- the input stream representing the XML documentencoding- the charset encoding of the XML document ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, InputStream in)
Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
omFactory- the object model factory to usein- the input stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, InputStream in, String encoding)
Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
omFactory- the object model factory to usein- the input stream representing the XML documentencoding- the charset encoding of the XML document ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputStream in)
Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with a given parser configuration.- Parameters:
omFactory- the object model factory to useconfiguration- the parser configuration to usein- the input stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputStream in, String encoding)
Create an object model builder that reads an XML document from the provided input stream using a specified object model factory and with a given parser configuration.- Parameters:
omFactory- the object model factory to useconfiguration- the parser configuration to usein- the input stream representing the XML documentencoding- the charset encoding of the XML document ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(Reader in)
Create an object model builder that reads a plain XML document from the provided character stream with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
in- the character stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, Reader in)
Create an object model builder that reads a plain XML document from the provided character stream with a given parser configuration.- Parameters:
configuration- the parser configuration to usein- the character stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Reader in)
Create an object model builder that reads an XML document from the provided character stream using a specified object model factory and with the default parser configuration defined byStAXParserConfiguration.DEFAULT.- Parameters:
omFactory- the object model factory to usein- the character stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, Reader in)
Create an object model builder that reads an XML document from the provided character stream using a specified object model factory and with a given parser configuration.- Parameters:
omFactory- the object model factory to useconfiguration- the parser configuration to usein- the character stream representing the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(Source source)
Create an object model builder that reads a plain XML document from the providedSource. When used with aDOMSourceorSAXSource, entities are expanded, i.e. the method has the same behavior ascreateOMBuilder(Node, boolean)andcreateOMBuilder(SAXSource, boolean)withexpandEntityReferencesset totrue.- Parameters:
source- the source of the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(Node node, boolean expandEntityReferences)
Create an object model builder that reads a plain XML document from the provided DOM tree.- Parameters:
node- the DOM node; must be aNode.DOCUMENT_NODEorNode.ELEMENT_NODEexpandEntityReferences- Determines howEntityReferencenodes are handled:- If the parameter is
falsethen a singleOMEntityReferencewill be created for eachEntityReference. The child nodes ofEntityReferencenodes are not taken into account. - If the parameter is
truethen noOMEntityReferencenodes are created and the children ofEntityReferencenodes are converted and inserted into the Axiom tree.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(SAXSource source, boolean expandEntityReferences)
Create an object model builder that reads a plain XML document from the providedSAXSource.- Parameters:
source- the source of the XML documentexpandEntityReferences- Determines how entity references (i.e.LexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events) are handled:- If the parameter is
falsethen a singleOMEntityReferencewill be created for each pair ofLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events. Other events reported between these two events are not taken into account. - If the parameter is
truethen noOMEntityReferencenodes are created andLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events are ignored. However, events betweenLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)are processed normally.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source source)
Create an object model builder that reads an XML document from the providedSourceusing a specified object model factory. When used with aDOMSourceorSAXSource, entities are expanded, i.e. the method has the same behavior ascreateOMBuilder(OMFactory, Node, boolean)andcreateOMBuilder(OMFactory, SAXSource, boolean)withexpandEntityReferencesset totrue.- Parameters:
omFactory- the object model factory to usesource- the source of the XML document- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Node node, boolean expandEntityReferences)
Create an object model builder that reads an XML document from the provided DOM tree using a specified object model factory.- Parameters:
omFactory- the object model factory to usenode- the DOM node; must be aNode.DOCUMENT_NODEorNode.ELEMENT_NODEexpandEntityReferences- Determines howEntityReferencenodes are handled:- If the parameter is
falsethen a singleOMEntityReferencewill be created for eachEntityReference. The child nodes ofEntityReferencenodes are not taken into account. - If the parameter is
truethen noOMEntityReferencenodes are created and the children ofEntityReferencenodes are converted and inserted into the Axiom tree.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, SAXSource source, boolean expandEntityReferences)
Create an object model builder that reads an XML document from the providedSAXSourceusing a specified object model factory.- Parameters:
omFactory- the object model factory to usesource- the source of the XML documentexpandEntityReferences- Determines how entity references (i.e.LexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events) are handled:- If the parameter is
falsethen a singleOMEntityReferencewill be created for each pair ofLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events. Other events reported between these two events are not taken into account. - If the parameter is
truethen noOMEntityReferencenodes are created andLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)events are ignored. However, events betweenLexicalHandler.startEntity(String)andLexicalHandler.endEntity(String)are processed normally.
- If the parameter is
- Returns:
- the builder
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, Attachments attachments)
Deprecated.Create an XOP aware model builder from the providedAttachmentsobject and with a given parser configuration.- Parameters:
configuration- the parser configuration to useattachments- anAttachmentsobject that must have been created from an input stream- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theAttachmentsobject
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, MultipartBody message)
Create an XOP aware model builder from the providedMultipartBodyobject and with a given parser configuration.- Parameters:
configuration- the parser configuration to usemessage- the MIME message- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theMultipartBodyobject
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, Attachments attachments)
Deprecated.Create an XOP aware model builder from the providedAttachmentsobject using a specified object model factory and with a given parser configuration.- Parameters:
omFactory- the object model factory to useconfiguration- the parser configuration to useattachments- anAttachmentsobject that must have been created from an input stream- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theAttachmentsobject
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, MultipartBody message)
Create an XOP aware model builder from the providedMultipartBodyobject using a specified object model factory and with a given parser configuration.- Parameters:
omFactory- the object model factory to useconfiguration- the parser configuration to usemessage- the MIME message- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theMultipartBodyobject
-
createOMBuilder
public static OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source rootPart, OMAttachmentAccessor attachmentAccessor)
-
createStAXSOAPModelBuilder
public static SOAPModelBuilder createStAXSOAPModelBuilder(OMMetaFactory metaFactory, XMLStreamReader parser)
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 appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.See
createStAXOMBuilder(XMLStreamReader)for more information about the behavior of the returned builder.- Parameters:
metaFactory- the meta factory for the Axiom implementation to useparser- the stream reader to read the XML data from- Returns:
- the builder
-
createStAXSOAPModelBuilder
public static SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
Create an object model builder for SOAP that pulls events from a StAX stream reader. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.See
createStAXOMBuilder(XMLStreamReader)for more information about the behavior of the returned builder.- Parameters:
parser- the stream reader to read the XML data from- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(InputStream in, String encoding)
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 appropriateSOAPFactorybased on the namespace URI of the SOAP envelope. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
in- the input stream containing the SOAP messageencoding- the charset encoding of the SOAP message ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, InputStream in, String encoding)
Create an object model builder for SOAP that reads a message from the provided input stream, using a particular Axiom implementation and a given charset encoding. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
metaFactory- the meta factory for the Axiom implementation to usein- the input stream containing the SOAP messageencoding- the charset encoding of the SOAP message ornullif the parser should determine the charset encoding- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(Reader in)
Create an object model builder for SOAP that reads a message from the provided character stream. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
in- the character stream containing the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, Reader in)
Create an object model builder for SOAP that reads a message from the provided character stream using a particular Axiom implementation. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
metaFactory- the meta factory for the Axiom implementation to usein- the character stream containing the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(Source source)
Create an object model builder for SOAP that reads a message from the providedSource. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.- Parameters:
source- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, Source source)
Create an object model builder for SOAP that reads a message from the providedSourceusing a particular Axiom implementation. The method will select the appropriateSOAPFactorybased on the namespace URI of the SOAP envelope.- Parameters:
metaFactory- the meta factory for the Axiom implementation to usesource- the source of the SOAP message- Returns:
- the builder
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(Attachments attachments)
Deprecated.UsecreateSOAPModelBuilder(MultipartBody)insteadCreate an MTOM aware model builder from the providedAttachmentsobject. The method will determine the SOAP version based on the content type information from theAttachmentsobject. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
attachments- anAttachmentsobject that must have been created from an input stream- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theAttachmentsobject
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(MultipartBody message)
Create an MTOM aware model builder from the providedMultipartBodyobject. The method will determine the SOAP version based on the content type information from theMultipartBodyobject. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
message- the MIME message- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theMultipartBodyobject
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, Attachments attachments)
Deprecated.UsecreateSOAPModelBuilder(OMMetaFactory, MultipartBody)instead.Create an MTOM aware model builder from the providedAttachmentsobject using a particular Axiom implementation. The method will determine the SOAP version based on the content type information from theAttachmentsobject. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
metaFactory- the meta factory for the Axiom implementation to useattachments- anAttachmentsobject that must have been created from an input stream- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theAttachmentsobject
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, MultipartBody message)
Create an MTOM aware model builder from the providedMultipartBodyobject using a particular Axiom implementation. The method will determine the SOAP version based on the content type information from theMultipartBodyobject. It will configure the underlying parser as specified byStAXParserConfiguration.SOAP.- Parameters:
metaFactory- the meta factory for the Axiom implementation to usemessage- the MIME message- Returns:
- the builder
- Throws:
OMException- if an error occurs while processing the content type information from theMultipartBodyobject
-
createSOAPModelBuilder
public static SOAPModelBuilder createSOAPModelBuilder(OMMetaFactory metaFactory, Source rootPart, OMAttachmentAccessor attachmentAccessor)
-
-