public interface AttachmentFault
Modifier and Type | Method and Description |
---|---|
void |
addAttachment(javax.xml.soap.AttachmentPart attachmentPart)
Adds an attachment to be associated with this fault.
|
void |
addAttachment(javax.activation.DataHandler dh)
Adds an attachment to be associated with this fault using a DataHandler.
|
void |
addAttachment(java.lang.Object content, java.lang.String contentType)
Adds an attachment to be associated with this fault.
|
java.util.Iterator |
getAttachments()
Get a list of all attachments for this fault.
|
boolean |
hasAttachments()
Checks if the fault has any MIME attachments.
|
void addAttachment(javax.activation.DataHandler dh) throws javax.xml.soap.SOAPException
javax.xml.soap.AttachmentPart
and adds it to the list of attachments.dh
- A DataHandler object containing the attachment.javax.xml.soap.SOAPException
- If the DataHandler is null or an exception is thrown while adding the attachment.addAttachment(javax.xml.soap.AttachmentPart)
void addAttachment(java.lang.Object content, java.lang.String contentType) throws javax.xml.soap.SOAPException
content
- The object to be attachedcontentType
- The mime type of the object. Ex. "image/jpeg", "application/xml", etc.javax.xml.soap.SOAPException
void addAttachment(javax.xml.soap.AttachmentPart attachmentPart)
attachmentPart
- An attachment to be added to the SOAP message.java.util.Iterator getAttachments()
boolean hasAttachments()