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, cache, charEncoding, customBuilderForPayload, customBuilders, dataHandlerReader, document, done, elementLevel, maxDepthForCustomBuilders, omfactory, parser, parserAccessed, parserException, target| Constructor and Description |
|---|
StAXSOAPModelBuilder(OMMetaFactory metaFactory,
javax.xml.stream.XMLStreamReader parser)
Constructor.
|
StAXSOAPModelBuilder(OMMetaFactory metaFactory,
javax.xml.stream.XMLStreamReader parser,
Detachable detachable,
Closeable closeable)
For internal use only.
|
StAXSOAPModelBuilder(OMMetaFactory metaFactory,
javax.xml.stream.XMLStreamReader parser,
String soapVersion)
Constructor.
|
StAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser)
Constructor.
|
StAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser,
SOAPFactory factory,
String soapVersion)
Constructor.
|
StAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser,
SOAPFactory factory,
String soapVersion,
Detachable detachable,
Closeable closeable)
For internal use only.
|
StAXSOAPModelBuilder(javax.xml.stream.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()
Deprecated.
Use
SOAPModelBuilder.getSOAPMessage() instead. |
SOAPMessage |
getSOAPMessage()
Get the SOAP message being built by this builder.
|
protected void |
identifySOAPVersion(String soapVersionURIFromTransport) |
createComment, createOMElement, createPrefix, createWithCustomBuilder, getDocumentElement, getDocumentElement, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterningclose, createDocumentIfNecessary, createOMText, debugDiscarded, detach, disableCaching, 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, reenableCaching, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, setAutoClose, setCache, setOMBuilderFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, detach, discard, getBuilderType, getCharacterEncoding, getDocument, getDocumentElement, getDocumentElement, getParser, getRegisteredContentHandler, isCache, isCompleted, next, registerExternalContentHandler, setCachepublic StAXSOAPModelBuilder(javax.xml.stream.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, javax.xml.stream.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(javax.xml.stream.XMLStreamReader parser)
parser - the parser to read the SOAP message frompublic StAXSOAPModelBuilder(OMMetaFactory metaFactory, javax.xml.stream.XMLStreamReader parser, Detachable detachable, Closeable closeable)
public StAXSOAPModelBuilder(OMMetaFactory metaFactory, javax.xml.stream.XMLStreamReader parser)
metaFactory - the meta factory used to get the appropriate SOAPFactory
implementationparser - the parser to read the SOAP message frompublic StAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser, SOAPFactory factory, String soapVersion, Detachable detachable, Closeable closeable)
public StAXSOAPModelBuilder(javax.xml.stream.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
SOAPModelBuilderOMXMLParserWrapper.getDocumentElement()
but a different return type.getSOAPEnvelope in interface SOAPModelBuilderOMExceptionprotected OMNode createNextOMElement()
StAXOMBuildercreateNextOMElement in class StAXOMBuilderprotected OMElement constructNode(OMContainer parent, String elementName)
StAXOMBuilderOMElement 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 StAXOMBuilderparent - the parent for the elementelementName - the local name for the elementOMElement; must not be nullprotected OMDocument createDocument()
createDocument in class StAXOMBuilderprotected OMNode createDTD() throws OMException
createDTD in class StAXOMBuilderOMExceptionprotected OMNode createPI() throws OMException
createPI in class StAXOMBuilderOMExceptionprotected OMNode createEntityReference()
createEntityReference in class StAXOMBuilderpublic OMNamespace getEnvelopeNamespace()
public SOAPMessage getSoapMessage()
SOAPModelBuilder.getSOAPMessage() instead.public SOAPMessage getSOAPMessage()
SOAPModelBuilderOMXMLParserWrapper.getDocument() but a different return type.getSOAPMessage in interface SOAPModelBuilderpublic SOAPFactory getSOAPFactory()
Copyright ? The Apache Software Foundation. All Rights Reserved.