|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.message.DataHandlerAttachment
public final class DataHandlerAttachment
Constructor Summary | |
---|---|
DataHandlerAttachment(String contentId,
javax.activation.DataHandler dh)
This will be constructed by AttachmentMarshallerImpl |
Method Summary | |
---|---|
byte[] |
asByteArray()
Gets the attachment as an exact-length byte array. |
javax.activation.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. |
void |
writeTo(OutputStream os)
Writes the contents of the attachment into the given stream. |
void |
writeTo(javax.xml.soap.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 DataHandlerAttachment(@NotNull String contentId, @NotNull javax.activation.DataHandler dh)
AttachmentMarshallerImpl
Method Detail |
---|
public String getContentId()
Attachment
getContentId
in interface Attachment
public String getContentType()
Attachment
getContentType
in interface Attachment
public byte[] asByteArray()
Attachment
asByteArray
in interface Attachment
public javax.activation.DataHandler asDataHandler()
Attachment
DataHandler
.
asDataHandler
in interface Attachment
public Source asSource()
Attachment
Source
.
Note that there's no guarantee that the attachment is actually an XML.
asSource
in interface Attachment
public InputStream asInputStream()
Attachment
InputStream
.
asInputStream
in interface Attachment
public void writeTo(OutputStream os) throws IOException
Attachment
writeTo
in interface Attachment
IOException
public void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException
Attachment
SOAPMessage
.
writeTo
in interface Attachment
javax.xml.soap.SOAPException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |