public class StAXSOAPModelBuilder extends StAXOMBuilder implements SOAPModelBuilder
SOAPEnvelope
, SOAPHeader
,
SOAPHeaderBlock
and SOAPBody
.
This builder offers two different ways to handle SOAP versions:
SOAPFactory
implementation corresponding to that SOAP version.SOAPFactory
is retrieved either from the OMMetaFactory
specified when the builder is constructed, or if none is specified, from the default
meta factory returned by OMAbstractFactory.getMetaFactory()
._isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, dataHandlerReader, document, done, elementLevel, maxDepthForCustomBuilders, omfactory, parser, parserAccessed, parserException, target
Constructor and Description |
---|
StAXSOAPModelBuilder(OMMetaFactory metaFactory,
XMLStreamReader parser)
Constructor.
|
StAXSOAPModelBuilder(OMMetaFactory metaFactory,
XMLStreamReader parser,
String soapVersion)
Constructor.
|
StAXSOAPModelBuilder(XMLStreamReader parser)
Constructor.
|
StAXSOAPModelBuilder(XMLStreamReader parser,
SOAPFactory factory,
String soapVersion)
Constructor.
|
StAXSOAPModelBuilder(XMLStreamReader parser,
String soapVersion)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected OMElement |
constructNode(OMContainer parent,
String elementName)
Instantiate the appropriate
OMElement implementation for the current element. |
protected OMDocument |
createDocument() |
protected OMNode |
createDTD()
Method createDTD.
|
protected OMNode |
createEntityReference() |
protected OMNode |
createNextOMElement()
Creates a new OMElement using either a CustomBuilder or
the default Builder mechanism.
|
protected OMNode |
createPI()
Method createPI.
|
OMNamespace |
getEnvelopeNamespace() |
SOAPEnvelope |
getSOAPEnvelope()
Get the SOAP envelope for the document processed by this builder.
|
SOAPFactory |
getSOAPFactory() |
SOAPMessage |
getSoapMessage() |
protected void |
identifySOAPVersion(String soapVersionURIFromTransport) |
createComment, createOMElement, createPrefix, createWithCustomBuilder, getDocumentElement, getDocumentElement, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterning
close, createDocumentIfNecessary, createOMText, debugDiscarded, discard, discard, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getBuilderType, getCharacterEncoding, getCharsetEncoding, getCustomBuilder, getDocument, getName, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getParser, getPrefix, getReaderProperty, getRegisteredContentHandler, getText, init, isCache, isClosed, isCompleted, processAttributes, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, setCache, setOMBuilderFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, discard, getBuilderType, getCharacterEncoding, getDocument, getDocumentElement, getDocumentElement, getParser, getRegisteredContentHandler, isCache, isCompleted, next, registerExternalContentHandler, setCache
public StAXSOAPModelBuilder(XMLStreamReader parser, String soapVersion)
parser
- the parser to read the SOAP message fromsoapVersion
- the namespace URI corresponding to the expected SOAP version
of the messagepublic StAXSOAPModelBuilder(OMMetaFactory metaFactory, XMLStreamReader parser, String soapVersion)
metaFactory
- the meta factory used to get the appropriate SOAPFactory
implementationparser
- the parser to read the SOAP message fromsoapVersion
- the namespace URI corresponding to the expected SOAP version
of the messagepublic StAXSOAPModelBuilder(XMLStreamReader parser)
parser
- the parser to read the SOAP message frompublic StAXSOAPModelBuilder(OMMetaFactory metaFactory, XMLStreamReader parser)
metaFactory
- the meta factory used to get the appropriate SOAPFactory
implementationparser
- the parser to read the SOAP message frompublic StAXSOAPModelBuilder(XMLStreamReader parser, SOAPFactory factory, String soapVersion)
parser
- the parser to read the SOAP message fromfactory
- the SOAP factory to usesoapVersion
- the namespace URI corresponding to the expected SOAP version
of the messageprotected void identifySOAPVersion(String soapVersionURIFromTransport)
soapVersionURIFromTransport
- public SOAPEnvelope getSOAPEnvelope() throws OMException
SOAPModelBuilder
getSOAPEnvelope
in interface SOAPModelBuilder
OMException
protected OMNode createNextOMElement()
StAXOMBuilder
createNextOMElement
in class StAXOMBuilder
protected OMElement constructNode(OMContainer parent, String elementName)
StAXOMBuilder
OMElement
implementation for the current element. This
method may be overridden by subclasses to support model specific OMElement
types. The
implementation of this method is expected to initialize the OMElement
with the
specified local name and to add it to the specified parent. However, the implementation
should not set the namespace of the element or process the attributes of the element. This is
taken care of by the caller of this method.constructNode
in class StAXOMBuilder
parent
- the parent for the elementelementName
- the local name for the elementOMElement
; must not be null
protected OMDocument createDocument()
createDocument
in class StAXOMBuilder
protected OMNode createDTD() throws OMException
createDTD
in class StAXOMBuilder
OMException
protected OMNode createPI() throws OMException
createPI
in class StAXOMBuilder
OMException
protected OMNode createEntityReference()
createEntityReference
in class StAXOMBuilder
public OMNamespace getEnvelopeNamespace()
public SOAPMessage getSoapMessage()
public SOAPFactory getSOAPFactory()
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.