org.apache.axiom.soap.impl.builder
Class MTOMStAXSOAPModelBuilder

java.lang.Object
  extended by org.apache.axiom.om.impl.builder.StAXBuilder
      extended by org.apache.axiom.om.impl.builder.StAXOMBuilder
          extended by org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
              extended by org.apache.axiom.soap.impl.builder.MTOMStAXSOAPModelBuilder
All Implemented Interfaces:
XOPBuilder, MTOMConstants, OMAttachmentAccessor, OMXMLParserWrapper

public class MTOMStAXSOAPModelBuilder
extends StAXSOAPModelBuilder
implements MTOMConstants, XOPBuilder


Field Summary
 
Fields inherited from class org.apache.axiom.om.impl.builder.StAXBuilder
_isClosed, _releaseParserOnClose, cache, charEncoding, customBuilderForPayload, customBuilders, document, done, elementLevel, isDataHandlerAware, lastNode, maxDepthForCustomBuilders, omfactory, parser, parserAccessed
 
Fields inherited from interface org.apache.axiom.om.impl.MTOMConstants
ATTACHMENTS, MTOM_TYPE, ROOT_PART, SWA_TYPE, SWA_TYPE_12, XOP_INCLUDE, XOP_NAMESPACE_URI
 
Constructor Summary
MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader reader, Attachments attachments)
           
MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader reader, Attachments attachments, String soapVersion)
           
MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser, SOAPFactory factory, Attachments attachments, String soapVersion)
           
 
Method Summary
protected  OMNode createOMElement()
          Method createOMElement.
 Attachments getAttachments()
           
 javax.activation.DataHandler getDataHandler(String blobContentID)
           
 
Methods inherited from class org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
constructNode, createDTD, createNextOMElement, createPI, endElement, getDocument, getDocumentElement, getEnvelopeNamespace, getSOAPEnvelope, getSoapFactory, getSoapMessage, identifySOAPVersion, isProcessingDetailElements, processNamespaceData, setProcessingDetailElements, setSOAPEnvelope
 
Methods inherited from class org.apache.axiom.om.impl.builder.StAXOMBuilder
createComment, createPrefix, createWithCustomBuilder, isLookahead, isNamespaceURIInterning, logParserState, lookahead, next, processNamespaceData, setDoDebug, setNamespaceURIInterning
 
Methods inherited from class org.apache.axiom.om.impl.builder.StAXBuilder
close, createOMText, discard, getAttributeCount, getAttributeName, getAttributeNamespace, getAttributePrefix, getBuilderType, getCharacterEncoding, getCharsetEncoding, getCustomBuilder, getLastNode, getName, getNamespace, getNamespaceCount, getNamespacePrefix, getNamespaceUri, getParser, getPrefix, getReaderProperty, getRegisteredContentHandler, getText, init, isCache, isClosed, isCompleted, isDataHandlerAware, processAttributes, registerCustomBuilder, registerCustomBuilderForPayload, registerExternalContentHandler, releaseParserOnClose, reset, setCache, setIsDataHandlerAware, setOMBuilderFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MTOMStAXSOAPModelBuilder

public MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader parser,
                                SOAPFactory factory,
                                Attachments attachments,
                                String soapVersion)

MTOMStAXSOAPModelBuilder

public MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader reader,
                                Attachments attachments,
                                String soapVersion)
Parameters:
reader -
attachments -

MTOMStAXSOAPModelBuilder

public MTOMStAXSOAPModelBuilder(javax.xml.stream.XMLStreamReader reader,
                                Attachments attachments)
Method Detail

createOMElement

protected OMNode createOMElement()
                          throws OMException
Description copied from class: StAXSOAPModelBuilder
Method createOMElement.

Overrides:
createOMElement in class StAXSOAPModelBuilder
Returns:
Returns OMNode.
Throws:
OMException

getDataHandler

public javax.activation.DataHandler getDataHandler(String blobContentID)
                                            throws OMException
Specified by:
getDataHandler in interface XOPBuilder
Specified by:
getDataHandler in interface OMAttachmentAccessor
Returns:
The DataHandler of the mime part referred by the Content-Id or *null* if the mime part referred by the content-id does not exist
Throws:
OMException

getAttachments

public Attachments getAttachments()
Specified by:
getAttachments in interface XOPBuilder


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.