# Deprecated API

## Contents

- Interfaces
- Fields
- Methods

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

- 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.

- 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.serializeAndConsume​(OutputStream) | Use `OMContainer.serialize(OutputStream, boolean)` instead.
  org.apache.axiom.om.OMDataSource.serialize​(OutputStream, 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​(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.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.OMXMLBuilderFactory.createOMBuilder​(StAXParserConfiguration, Attachments) | Use `OMXMLBuilderFactory.createOMBuilder(StAXParserConfiguration, MultipartBody)` instead.
  org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder​(Attachments) | Use `OMXMLBuilderFactory.createSOAPModelBuilder(MultipartBody)` instead
  org.apache.axiom.om.util.jaxb.JAXBUtils.unmarshal​(JAXBContext, OMElement, boolean) | Use `unmarshal(OMContainer, JAXBContext, UnmarshallerConfigurator, boolean)` instead.
  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter​(OutputStream) |
  org.apache.axiom.om.util.StAXUtils.getXMLInputFactory​(boolean) |
  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory() |
  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.encode​(byte[]) |
  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.