|
Oracle Application Server Web Services Java API Reference 10g Release 3 (10.1.3) B25988-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public 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)
public 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.SOAPExceptionpublic void addAttachment(AttachmentPart attachmentPart)
attachmentPart - An attachment to be added to the SOAP message.public Iterator getAttachments()
public boolean hasAttachments()
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||