public abstract class AbstractOMMetaFactory extends Object implements OMMetaFactoryEx
OMMetaFactory implementations that make use of the standard builders
(StAXOMBuilder and its subclasses).| Constructor and Description |
|---|
AbstractOMMetaFactory() |
| Modifier and Type | Method and Description |
|---|---|
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
Node node,
boolean expandEntityReferences)
Create an object model builder for plain XML that gets its input from a DOM tree.
|
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
SAXSource source,
boolean expandEntityReferences)
Create an object model builder for plain XML that gets its input from a
SAXSource. |
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
Source source)
Create an object model builder for plain XML that gets its input from a
Source. |
OMXMLParserWrapper |
createOMBuilder(OMFactory omFactory,
StAXParserConfiguration configuration,
InputSource is)
Create an object model builder for plain XML that reads a document from the provided input
source.
|
OMXMLParserWrapper |
createOMBuilder(StAXParserConfiguration configuration,
OMFactory omFactory,
InputSource rootPart,
MimePartProvider mimePartProvider)
Create an XOP aware object model builder.
|
SOAPModelBuilder |
createSOAPModelBuilder(StAXParserConfiguration configuration,
InputSource is)
Create an object model builder for SOAP that reads a message from the provided input source.
|
SOAPModelBuilder |
createSOAPModelBuilder(StAXParserConfiguration configuration,
SOAPFactory soapFactory,
InputSource rootPart,
MimePartProvider mimePartProvider)
Create an MTOM aware object model builder.
|
OMXMLParserWrapper |
createStAXOMBuilder(OMFactory omFactory,
XMLStreamReader parser)
Create an object model builder for plain XML that pulls events from a StAX stream reader.
|
SOAPModelBuilder |
createStAXSOAPModelBuilder(XMLStreamReader parser)
Create an object model builder for SOAP that pulls events from a StAX stream reader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateSOAPMessagegetOMFactory, getSOAP11Factory, getSOAP12Factorypublic OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
OMMetaFactoryThe implementation must perform namespace repairing, i.e. it must add appropriate namespace declarations if undeclared namespaces appear in the StAX stream.
createStAXOMBuilder in interface OMMetaFactoryomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method. In general
the factory will be retrieved from OMMetaFactory.getOMFactory()), but in some cases it
may be necessary to pass a SOAPFactory instance, although this method will
never produce a SOAP infoset.parser - the stream reader to read the XML data frompublic OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is)
OMMetaFactorycreateOMBuilder in interface OMMetaFactoryomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method. In general
the factory will be retrieved from OMMetaFactory.getOMFactory()), but in some cases it
may be necessary to pass a SOAPFactory instance, although this method will
never produce a SOAP infoset.configuration - the parser configuration to useis - the source of the XML documentpublic OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source source)
OMMetaFactorySource.createOMBuilder in interface OMMetaFactoryomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method. In general
the factory will be retrieved from OMMetaFactory.getOMFactory()), but in some cases it
may be necessary to pass a SOAPFactory instance, although this method will
never produce a SOAP infoset.source - the source of the XML documentpublic OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Node node, boolean expandEntityReferences)
OMMetaFactorycreateOMBuilder in interface OMMetaFactoryomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method. In general
the factory will be retrieved from OMMetaFactory.getOMFactory()), but in some cases it
may be necessary to pass a SOAPFactory instance, although this method will
never produce a SOAP infoset.node - the DOM node; must be a Node.DOCUMENT_NODE or Node.ELEMENT_NODEexpandEntityReferences - Determines how EntityReference nodes are handled:
false then a single OMEntityReference
will be created for each EntityReference. The child nodes of
EntityReference nodes are not taken into account.
true then no OMEntityReference nodes
are created and the children of EntityReference nodes are converted and
inserted into the Axiom tree.
public OMXMLParserWrapper createOMBuilder(OMFactory omFactory, SAXSource source, boolean expandEntityReferences)
OMMetaFactorySAXSource.createOMBuilder in interface OMMetaFactoryomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method. In general
the factory will be retrieved from OMMetaFactory.getOMFactory()), but in some cases it
may be necessary to pass a SOAPFactory instance, although this method will
never produce a SOAP infoset.source - the source of the XML documentexpandEntityReferences - Determines how entity references (i.e. LexicalHandler.startEntity(String)
and LexicalHandler.endEntity(String) events) are handled:
false then a single OMEntityReference
will be created for each pair of LexicalHandler.startEntity(String) and
LexicalHandler.endEntity(String) events. Other events reported between
these two events are not taken into account.
true then no OMEntityReference nodes
are created and LexicalHandler.startEntity(String) and
LexicalHandler.endEntity(String) events are ignored. However, events
between LexicalHandler.startEntity(String) and
LexicalHandler.endEntity(String) are processed normally.
public OMXMLParserWrapper createOMBuilder(StAXParserConfiguration configuration, OMFactory omFactory, InputSource rootPart, MimePartProvider mimePartProvider)
OMMetaFactorycreateOMBuilder in interface OMMetaFactoryconfiguration - the parser configuration to useomFactory - The object model factory to use. This factory must be obtained from the same
OMMetaFactory instance as the one used to invoke this method.rootPart - the source of the root part of the XOP messagemimePartProvider - the provider from which MIME parts referenced in the root part will be retrievedpublic SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
OMMetaFactorySOAPFactory based on the namespace URI of
the SOAP envelope.createStAXSOAPModelBuilder in interface OMMetaFactoryparser - the stream reader to read the SOAP message frompublic SOAPModelBuilder createSOAPModelBuilder(StAXParserConfiguration configuration, InputSource is)
OMMetaFactorySOAPFactory based on the namespace URI
of the SOAP envelope.createSOAPModelBuilder in interface OMMetaFactoryconfiguration - the parser configuration to use; for security reasons, this should in general be
StAXParserConfiguration.SOAPis - the source of the SOAP messagepublic SOAPModelBuilder createSOAPModelBuilder(StAXParserConfiguration configuration, SOAPFactory soapFactory, InputSource rootPart, MimePartProvider mimePartProvider)
OMMetaFactorycreateSOAPModelBuilder in interface OMMetaFactoryconfiguration - the parser configuration to use; for security reasons, this should in general be
StAXParserConfiguration.SOAPsoapFactory - the SOAPFactory to use, or null if the implementation should
select the appropriate SOAPFactory based on the namespace URI of the SOAP
envelope.rootPart - the source of the root part of the MTOM messagemimePartProvider - the provider from which MIME parts referenced in the root part will be retrievedCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.