|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AttachmentFault
This class is used to manage MIME attachments in a SOAP Fault
| Method Summary | |
|---|---|
void |
addAttachment(AttachmentPart attachmentPart)Adds an attachment to be associated with this fault. |
void |
addAttachment(DataHandler dh)Adds an attachment to be associated with this fault using a DataHandler. |
void |
addAttachment(Object content, String contentType)Adds an attachment to be associated with this fault. |
Iterator |
getAttachments()Get a list of all attachments for this fault. |
boolean |
hasAttachments()Checks if the fault has any MIME attachments. |
| Method Detail |
|---|
void addAttachment(DataHandler dh)
throws SOAPException
javax.xml.soap.AttachmentPart and adds it to the list of attachments.dh - A DataHandler object containing the attachment.SOAPException - If the DataHandler is null or an exception is thrown while adding the attachment.addAttachment(javax.xml.soap.AttachmentPart)
void addAttachment(Object content,
String contentType)
throws SOAPException
content - The object to be attachedcontentType - The mime type of the object. Ex. "image/jpeg", "application/xml", etc.SOAPExceptionvoid addAttachment(AttachmentPart attachmentPart)
attachmentPart - An attachment to be added to the SOAP message.Iterator getAttachments()
boolean hasAttachments()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||