Class AttachmentUtils
java.lang.Object
org.apache.axis2.jaxws.message.attachments.AttachmentUtils
A suite of utilities used for handling MTOM attachment data.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidfindCachedAttachment(org.apache.axiom.attachments.Attachments attachments) Process attachment's dataHandlers for CachedFileDataSource.static org.apache.axiom.om.OMTextmakeBinaryOMNode(org.apache.axiom.om.OMElement xop, jakarta.activation.DataHandler dh) Given anstatic org.apache.axiom.om.OMElementmakeXopElement(org.apache.axiom.om.OMText data) Given an OMText node, create it's corresponding
-
Constructor Details
-
AttachmentUtils
public AttachmentUtils()
-
-
Method Details
-
makeBinaryOMNode
public static org.apache.axiom.om.OMText makeBinaryOMNode(org.apache.axiom.om.OMElement xop, jakarta.activation.DataHandler dh) Given an<xop:include>
element, create an OMText element with the appropriate attachment data.- Parameters:
xop-data-- Returns:
-
makeXopElement
public static org.apache.axiom.om.OMElement makeXopElement(org.apache.axiom.om.OMText data) Given an OMText node, create it's corresponding<xop:include>
element. -
findCachedAttachment
public static void findCachedAttachment(org.apache.axiom.attachments.Attachments attachments) Process attachment's dataHandlers for CachedFileDataSource. If exist, execute file.deleteOnExit() request on the cached attachment file referenced by each CachedFileDataSource. This will delete the cached attachment file on JVM exit.- Parameters:
attachments-
-