# Deprecated API

## Contents

- Interfaces
- Classes
- Fields
- Methods

- Deprecated Interfaces
  Interface
  Description
  org.apache.axiom.ext.stax.DelegatingXMLStreamReader
  org.apache.axiom.om.util.StAXWriterConfiguration

- Deprecated Classes
  Class
  Description
  org.apache.axiom.om.ds.activation.WrappedTextNodeOMDataSourceFromDataSource
  Use `WrappedTextNodeOMDataSourceFromBlob` instead.

- Deprecated Fields
  Field
  Description
  org.apache.axiom.om.impl.MTOMConstants.ATTACHMENTS
  This was used in old versions of Axis2 as the key identifying the attachments map in the message context. You should no longer use this.
  org.apache.axiom.om.impl.MTOMConstants.ROOT_PART
  org.apache.axiom.om.OMOutputFormat.RESPECT_SWA_ATTACHMENT_ORDER
  As of version 1.2.13, Axiom always respects the order of attachments.
  org.apache.axiom.om.OMOutputFormat.RESPECT_SWA_ATTACHMENT_ORDER_DEFAULT
  As of version 1.2.13, Axiom always respects the order of attachments.
  org.apache.axiom.om.OMOutputFormat.USE_CTE_BASE64_FOR_NON_TEXTUAL_ATTACHMENTS
  Use `ContentTransferEncodingPolicy.USE_BASE64_FOR_NON_TEXTUAL_PARTS` instead.
  org.apache.axiom.soap.SOAP11Constants.SOAP_11_CONTENT_TYPE
  Use `SOAPVersion.getMediaType()` instead.
  org.apache.axiom.soap.SOAP12Constants.SOAP_12_CONTENT_TYPE
  Use `SOAPVersion.getMediaType()` instead.

- Deprecated Methods
  Method
  Description
  org.apache.axiom.attachments.Attachments.getIncomingAttachmentsAsSingleStream()
  As of Axiom 1.2.13, this method is no longer supported.
  org.apache.axiom.attachments.Attachments.getSOAPPartContentID()
  Use `Attachments.getRootPartContentID()` instead.
  org.apache.axiom.attachments.Attachments.getSOAPPartContentType()
  Use `Attachments.getRootPartContentType()` instead.
  org.apache.axiom.attachments.Attachments.getSOAPPartInputStream()
  Use `Attachments.getRootPartInputStream()` instead.
  org.apache.axiom.attachments.lifecycle.DataHandlerExt.deleteWhenReadOnce()
  Use `DataHandlerExt.readOnce()` or `DataHandlerExt.purgeDataSource()` instead.
  org.apache.axiom.om.OMAttribute.setOMNamespace(OMNamespace)
  Use `OMNamedInformationItem.setNamespace(OMNamespace, boolean)` instead.
  org.apache.axiom.om.OMContainer.serialize(OutputStream)
  Use `OMContainer.serialize(OutputStream, boolean)` instead.
  org.apache.axiom.om.OMContainer.serialize(OutputStream, OMOutputFormat)
  Use `OMContainer.serialize(OutputStream, OMOutputFormat, boolean)` instead.
  org.apache.axiom.om.OMContainer.serialize(Writer)
  Use `OMContainer.serialize(Writer, boolean)` instead.
  org.apache.axiom.om.OMContainer.serialize(Writer, OMOutputFormat)
  Use `OMContainer.serialize(Writer, OMOutputFormat, boolean)` instead.
  org.apache.axiom.om.OMContainer.serializeAndConsume(OutputStream)
  Use `OMContainer.serialize(OutputStream, boolean)` instead.
  org.apache.axiom.om.OMContainer.serializeAndConsume(OutputStream, OMOutputFormat)
  Use `OMContainer.serialize(OutputStream, OMOutputFormat, boolean)` instead.
  org.apache.axiom.om.OMContainer.serializeAndConsume(Writer)
  Use `OMContainer.serialize(Writer, boolean)` instead.
  org.apache.axiom.om.OMContainer.serializeAndConsume(Writer, OMOutputFormat)
  Use `OMContainer.serialize(Writer, OMOutputFormat, boolean)` instead.
  org.apache.axiom.om.OMDataSource.serialize(OutputStream, OMOutputFormat)
  org.apache.axiom.om.OMDataSource.serialize(Writer, OMOutputFormat)
  org.apache.axiom.om.OMDataSourceExt.getXMLBytes(String)
  org.apache.axiom.om.OMDataSourceExt.getXMLInputStream(String)
  org.apache.axiom.om.OMElement.getLineNumber()
  org.apache.axiom.om.OMElement.setLineNumber(int)
  org.apache.axiom.om.OMElement.setNamespaceWithNoFindInCurrentScope(OMNamespace)
  Use `OMNamedInformationItem.setNamespace(OMNamespace, boolean)` with `declare` set to `false`.
  org.apache.axiom.om.OMFactory.createOMText(String, String, boolean)
  org.apache.axiom.om.OMFactory.createOMText(OMContainer, char[], int)
  org.apache.axiom.om.OMFactory.createOMText(OMContainer, String, String, boolean)
  org.apache.axiom.om.OMFactory.createOMText(OMContainer, QName)
  This method is only meaningful if it is used to create a text node that is the single child of an `OMElement`. However, for that purpose `OMElement.setText(QName)` should be used.
  org.apache.axiom.om.OMFactory.createOMText(OMContainer, QName, int)
  Creating a text node containing a QName and having a type other than `OMNode.TEXT_NODE` is not meaningful.
  org.apache.axiom.om.OMNamespace.getName()
  This method is deprecated. Please use getNamespaceURI() method instead.
  org.apache.axiom.om.OMOutputFormat.getStAXWriterConfiguration()
  org.apache.axiom.om.OMOutputFormat.isAutoCloseWriter()
  org.apache.axiom.om.OMOutputFormat.setAutoCloseWriter(boolean)
  org.apache.axiom.om.OMOutputFormat.setStAXWriterConfiguration(StAXWriterConfiguration)
  org.apache.axiom.om.OMSourcedElement.setDataSource(OMDataSource)
  This method is deprecated because its semantics are not clearly defined. In particular it is unspecified whether the name of the element may change as a result of an invocation of this method.
  org.apache.axiom.om.OMText.getNamespace()
  This API is going away. Please use `OMElement.getTextAsQName()` instead.
  org.apache.axiom.om.OMText.getTextAsQName()
  If the underlying parser is non coalescing, then this method may unexpectedly fail or return an incorrect result. Always use `OMElement.getTextAsQName()` to get the QName value of an element.
  org.apache.axiom.om.OMText.getTextCharacters()
  org.apache.axiom.om.OMText.isCharacters()
  org.apache.axiom.om.util.jaxb.JAXBUtils.unmarshal(JAXBContext, OMElement, boolean)
  Use `JAXBUtils.unmarshal(OMContainer, JAXBContext, UnmarshallerConfigurator, boolean)` instead.
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(OutputStream)
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(OutputStream, String)
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(Writer)
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXWriterConfiguration, OutputStream)
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXWriterConfiguration, OutputStream, String)
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXWriterConfiguration, Writer)
  org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(boolean)
  org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXParserConfiguration, boolean)
  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory()
  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(boolean)
  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXWriterConfiguration)
  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXWriterConfiguration, boolean)
  org.apache.axiom.om.util.StAXUtils.setFactoryPerClassLoader(boolean)
  Per class loader factories are no longer supported. The code now always uses the class loader that loaded the `StAXUtils` class.
  org.apache.axiom.soap.SOAP11Version.getSingleton()
  Use `SOAPVersion.SOAP11` instead.
  org.apache.axiom.soap.SOAP12Version.getSingleton()
  Use `SOAPVersion.SOAP12` instead.
  org.apache.axiom.soap.SOAPHeader.getHeaderBlocksWithNSURI(String)
  Use `SOAPHeader.getHeaderBlocksWithNamespaceURI(String)` instead.
  org.apache.axiom.util.base64.Base64Utils.decode(char[], int, int)
  org.apache.axiom.util.base64.Base64Utils.decode(char[], int, int, OutputStream)
  org.apache.axiom.util.base64.Base64Utils.decode(String, OutputStream)
  org.apache.axiom.util.base64.Base64Utils.encode(byte[])
  org.apache.axiom.util.base64.Base64Utils.encode(byte[], int, int)
  org.apache.axiom.util.base64.Base64Utils.encode(byte[], int, int, OutputStream)
  org.apache.axiom.util.base64.Base64Utils.encode(byte[], int, int, Writer)
  org.apache.axiom.util.base64.Base64Utils.encode(byte[], int, int, StringBuffer)
  org.apache.axiom.util.base64.Base64Utils.isValidBase64Encoding(String)
  org.apache.axiom.util.stax.dialect.StAXDialect.makeThreadSafe(XMLOutputFactory)
  org.apache.axiom.util.stax.dialect.StAXDialect.normalize(XMLOutputFactory)
  org.apache.axiom.util.stax.dialect.StAXDialectDetector.normalize(XMLOutputFactory)
  org.apache.axiom.util.stax.XMLStreamReaderUtils.getOriginalXMLStreamReader(XMLStreamReader)
  As of version 1.3.0, Axiom no longer permits access to the original stream reader.