org.apache.axis2.jaxws.message.attachments
Class AttachmentUtils

java.lang.Object
  extended by org.apache.axis2.jaxws.message.attachments.AttachmentUtils

public class AttachmentUtils
extends Object

A suite of utilities used for handling MTOM attachment data.


Constructor Summary
AttachmentUtils()
           
 
Method Summary
static void findCachedAttachment(org.apache.axiom.attachments.Attachments attachments)
          Process attachment's dataHandlers for CachedFileDataSource.
static org.apache.axiom.om.OMText makeBinaryOMNode(org.apache.axiom.om.OMElement xop, DataHandler dh)
          Given an
static org.apache.axiom.om.OMElement makeXopElement(org.apache.axiom.om.OMText data)
          Given an OMText node, create it's corresponding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUtils

public AttachmentUtils()
Method Detail

makeBinaryOMNode

public static org.apache.axiom.om.OMText makeBinaryOMNode(org.apache.axiom.om.OMElement xop,
                                                          DataHandler dh)
Given an
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
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 -


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