|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.message.saaj.SAAJMessage.SAAJAttachmentSet
protected static class SAAJMessage.SAAJAttachmentSet
AttachmentSet for SAAJ.
SAAJ wants '<' and '>' for the content ID, but AttachmentSet
doesn't. S this class also does the conversion between them.
| Constructor Summary | |
|---|---|
SAAJMessage.SAAJAttachmentSet(SOAPMessage sm)
|
|
| Method Summary | |
|---|---|
void |
add(Attachment att)
Adds an attachment to this set. |
Attachment |
get(String contentId)
Gets the attachment by the content ID. |
boolean |
isEmpty()
Returns true if there's no attachment. |
Iterator<Attachment> |
iterator()
Returns an iterator over a set of elements of type T. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAAJMessage.SAAJAttachmentSet(SOAPMessage sm)
| Method Detail |
|---|
public Attachment get(String contentId)
get in interface AttachmentSetcontentId - The content ID like "foo-bar-zot@abc.com", without
surrounding '<' and '>' used as the transfer syntax.
public boolean isEmpty()
AttachmentSet
isEmpty in interface AttachmentSetpublic Iterator<Attachment> iterator()
iterator in interface Iterable<Attachment>public void add(Attachment att)
AttachmentSet
Note that it's OK for an Attachment to belong to
more than one AttachmentSet (which is in fact
necessary when you wrap a Message into another.
add in interface AttachmentSetatt - must not be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||