|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.message.JAXBAttachment
public final class JAXBAttachment
Constructor Summary | |
---|---|
JAXBAttachment(java.lang.String contentId,
java.lang.Object jaxbObject,
XMLBridge bridge,
java.lang.String mimeType)
|
Method Summary | |
---|---|
byte[] |
asByteArray()
Gets the attachment as an exact-length byte array. |
javax.activation.DataHandler |
asDataHandler()
Gets the attachment as a DataHandler . |
java.io.InputStream |
asInputStream()
Obtains this attachment as an InputStream . |
javax.xml.transform.Source |
asSource()
Gets the attachment as a Source . |
java.lang.String |
getContentId()
Content ID of the attachment. |
java.lang.String |
getContentType()
Gets the MIME content-type of this attachment. |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getName()
|
java.io.OutputStream |
getOutputStream()
|
void |
writeTo(java.io.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 JAXBAttachment(@NotNull java.lang.String contentId, java.lang.Object jaxbObject, XMLBridge bridge, java.lang.String mimeType)
Method Detail |
---|
public java.lang.String getContentId()
Attachment
getContentId
in interface Attachment
public java.lang.String getContentType()
Attachment
getContentType
in interface Attachment
getContentType
in interface javax.activation.DataSource
public byte[] asByteArray()
Attachment
asByteArray
in interface Attachment
public javax.activation.DataHandler asDataHandler()
Attachment
DataHandler
.
asDataHandler
in interface Attachment
public javax.xml.transform.Source asSource()
Attachment
Source
.
Note that there's no guarantee that the attachment is actually an XML.
asSource
in interface Attachment
public java.io.InputStream asInputStream()
Attachment
InputStream
.
asInputStream
in interface Attachment
public void writeTo(java.io.OutputStream os) throws java.io.IOException
Attachment
writeTo
in interface Attachment
java.io.IOException
public void writeTo(javax.xml.soap.SOAPMessage saaj) throws javax.xml.soap.SOAPException
Attachment
SOAPMessage
.
writeTo
in interface Attachment
javax.xml.soap.SOAPException
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface javax.activation.DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface javax.activation.DataSource
java.io.IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |