|
||||||||||
| 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.SAAJAttachment
protected static class SAAJMessage.SAAJAttachment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.xml.ws.api.message.AttachmentEx |
|---|
AttachmentEx.MimeHeader |
| Constructor Summary | |
|---|---|
SAAJMessage.SAAJAttachment(AttachmentPart part)
|
|
| Method Summary | |
|---|---|
byte[] |
asByteArray()
Gets the attachment as an exact-length byte array. |
DataHandler |
asDataHandler()
Gets the attachment as a DataHandler. |
InputStream |
asInputStream()
Obtains this attachment as an InputStream. |
Source |
asSource()
Gets the attachment as a Source. |
String |
getContentId()
Content ID of the attachment. |
String |
getContentType()
Gets the MIME content-type of this attachment. |
Iterator<AttachmentEx.MimeHeader> |
getMimeHeaders()
Iterator of custom MIME headers associated with this attachment |
void |
writeTo(OutputStream os)
Writes the contents of the attachment into the given stream. |
void |
writeTo(SOAPMessage saaj)
Writes this attachment to the given SOAPMessage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAAJMessage.SAAJAttachment(AttachmentPart part)
| Method Detail |
|---|
public String getContentId()
getContentId in interface Attachmentpublic String getContentType()
getContentType in interface Attachmentpublic byte[] asByteArray()
asByteArray in interface Attachmentpublic DataHandler asDataHandler()
DataHandler.
asDataHandler in interface Attachmentpublic Source asSource()
Source.
Note that there's no guarantee that the attachment is actually an XML.
asSource in interface Attachmentpublic InputStream asInputStream()
InputStream.
asInputStream in interface Attachment
public void writeTo(OutputStream os)
throws IOException
writeTo in interface AttachmentIOExceptionpublic void writeTo(SOAPMessage saaj)
SOAPMessage.
writeTo in interface Attachmentpublic Iterator<AttachmentEx.MimeHeader> getMimeHeaders()
AttachmentEx
getMimeHeaders in interface AttachmentEx
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||