| java.lang.Object org.apache.axis2.jaxws.message.attachments.AttachmentUtils
AttachmentUtils | public class AttachmentUtils (Code) | | A suite of utilities used for handling MTOM attachment data.
|
Method Summary | |
public static ArrayList<OMText> | findBinaryNodes(SOAPEnvelope env) Can be used to find all of the nodes in a tree that contain binary content that is targetted
for optimization via MTOM. | public static void | findCachedAttachment(Attachments attachments) Process attachment's dataHandlers for CachedFileDataSource. | public static ArrayList<OMElement> | findXopElements(OMElement env) Can be used to find all instances of the element
within a given OM SOAPEnvelope. | public static OMText | makeBinaryOMNode(OMElement xop, DataHandler dh) Given an element, create an OMText element
with the appropriate attachment data. | public static OMElement | makeXopElement(OMText data) Given an OMText node, create it's corresponding
element. |
findBinaryNodes | public static ArrayList<OMText> findBinaryNodes(SOAPEnvelope env)(Code) | | Can be used to find all of the nodes in a tree that contain binary content that is targetted
for optimization via MTOM.
Parameters: env - |
findCachedAttachment | public static void findCachedAttachment(Attachments attachments)(Code) | | 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 - |
findXopElements | public static ArrayList<OMElement> findXopElements(OMElement env)(Code) | | Can be used to find all instances of the element
within a given OM SOAPEnvelope.
Parameters: env - |
makeBinaryOMNode | public static OMText makeBinaryOMNode(OMElement xop, DataHandler dh)(Code) | | Given an element, create an OMText element
with the appropriate attachment data.
Parameters: xop - Parameters: data - |
makeXopElement | public static OMElement makeXopElement(OMText data)(Code) | | Given an OMText node, create it's corresponding
element.
|
|
|