|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.AbstractOMMetaFactory
public abstract class AbstractOMMetaFactory
Base class for OMMetaFactory
implementations that make use of the standard builders
(StAXOMBuilder
and its subclasses).
Constructor Summary | |
---|---|
AbstractOMMetaFactory()
|
Method Summary | |
---|---|
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. |
SOAPModelBuilder |
createSOAPModelBuilder(StAXParserConfiguration configuration,
InputSource is)
Create an object model builder for SOAP that reads a message from the provided input source. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.axiom.om.OMMetaFactory |
---|
getOMFactory, getSOAP11Factory, getSOAP12Factory |
Constructor Detail |
---|
public AbstractOMMetaFactory()
Method Detail |
---|
public OMXMLParserWrapper createStAXOMBuilder(OMFactory omFactory, XMLStreamReader parser)
OMMetaFactory
createStAXOMBuilder
in interface OMMetaFactory
omFactory
- 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 from
public OMXMLParserWrapper createOMBuilder(OMFactory omFactory, StAXParserConfiguration configuration, InputSource is)
OMMetaFactory
createOMBuilder
in interface OMMetaFactory
omFactory
- 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 document
public OMXMLParserWrapper createOMBuilder(OMFactory omFactory, Source source)
OMMetaFactory
Source
.
createOMBuilder
in interface OMMetaFactory
omFactory
- 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 document
public SOAPModelBuilder createStAXSOAPModelBuilder(XMLStreamReader parser)
OMMetaFactory
SOAPFactory
based on the namespace URI of
the SOAP envelope.
createStAXSOAPModelBuilder
in interface OMMetaFactory
parser
- the stream reader to read the SOAP message from
public SOAPModelBuilder createSOAPModelBuilder(StAXParserConfiguration configuration, InputSource is)
OMMetaFactory
SOAPFactory
based on the namespace URI
of the SOAP envelope.
createSOAPModelBuilder
in interface OMMetaFactory
configuration
- the parser configuration to use; for security reasons, this should in general be
StAXParserConfiguration.SOAP
is
- the source of the SOAP message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |