|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.om.impl.builder.StAXBuilder
org.apache.axiom.om.impl.builder.StAXOMBuilder
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
public class StAXSOAPModelBuilder
StAX based builder that produces a SOAP infoset model.
It builds SOAP specific objects such as 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().
| Field Summary |
|---|
| Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder |
|---|
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, dataHandlerReader, document, done, elementLevel, maxDepthForCustomBuilders, omfactory, parser, parserAccessed, parserException, target |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.axiom.om.impl.builder.StAXOMBuilder |
|---|
createComment, createOMElement, createPrefix, createWithCustomBuilder, getDocumentElement, getDocumentElement, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterning |
| 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.OMXMLParserWrapper |
|---|
close, discard, getBuilderType, getCharacterEncoding, getDocument, getDocumentElement, getDocumentElement, getParser, getRegisteredContentHandler, isCache, isCompleted, next, registerExternalContentHandler, setCache |
| Constructor Detail |
|---|
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 message
public 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 from
public StAXSOAPModelBuilder(OMMetaFactory metaFactory,
XMLStreamReader parser)
metaFactory - the meta factory used to get the appropriate SOAPFactory
implementationparser - the parser to read the SOAP message from
public 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 message| Method Detail |
|---|
protected void identifySOAPVersion(String soapVersionURIFromTransport)
soapVersionURIFromTransport -
public SOAPEnvelope getSOAPEnvelope()
throws OMException
SOAPModelBuilder
getSOAPEnvelope in interface SOAPModelBuilderOMExceptionprotected OMNode createNextOMElement()
StAXOMBuilder
createNextOMElement in class StAXOMBuilder
protected 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 element
OMElement; must not be nullprotected OMDocument createDocument()
createDocument in class StAXOMBuilder
protected OMNode createDTD()
throws OMException
createDTD in class StAXOMBuilderOMException
protected OMNode createPI()
throws OMException
createPI in class StAXOMBuilderOMExceptionprotected OMNode createEntityReference()
createEntityReference in class StAXOMBuilderpublic OMNamespace getEnvelopeNamespace()
public SOAPMessage getSoapMessage()
public SOAPFactory getSOAPFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||