org.ow2.petals.binding.soap.util
Class AttachmentHelper
java.lang.Object
org.ow2.petals.binding.soap.util.AttachmentHelper
public final class AttachmentHelper
- extends Object
Helper class for SOAP attachment handling
- Author:
- chamerling - eBMWebSourcing
|
Method Summary |
static org.apache.axiom.om.OMElement |
hasAttachmentElement(org.apache.axiom.om.OMElement omElement,
DataHandler dh,
String cid)
Test if the given OMElement has an attachment corresponding to
the provided CID. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasAttachmentElement
public static org.apache.axiom.om.OMElement hasAttachmentElement(org.apache.axiom.om.OMElement omElement,
DataHandler dh,
String cid)
throws UnsupportedEncodingException
- Test if the given
OMElement has an attachment corresponding to
the provided CID. If it exists, it this replace by itself using AXIOM
API. This replacement is needed by Axis2
- Parameters:
omElement - dh - cid - the attachment content id
- Returns:
- The OMElement containing the attachement link (ie. containing:
<xop:Include href="..."/> in case of a XOP attachement, the
element containing the attribut "href" in case of Swa)
- Throws:
UnsupportedEncodingException
Copyright © 2005-2012 Petals Link (EBM Websourcing). All Rights Reserved.