|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Attachment
Represents an attachment to a SoapMessage.
SoapMessage.getAttachments(),
SoapMessage.addAttachment(java.io.File),
SoapMessage.addAttachment(org.springframework.core.io.InputStreamSource, String)| Method Summary | |
|---|---|
java.lang.String |
getContentType()
Returns the content type of the attachment. |
java.lang.String |
getId()
Returns the identifier of the attachment. |
java.io.InputStream |
getInputStream()
Return an InputStream to read the contents of the attachment from. |
long |
getSize()
Returns the size of the attachment in bytes. |
| Method Detail |
|---|
java.lang.String getId()
Content-Id header, a DIME ID, etc.
null if empty or not definedjava.lang.String getContentType()
null if empty or not defined
java.io.InputStream getInputStream()
throws java.io.IOException
InputStream to read the contents of the attachment from. The user is responsible for
closing the stream.
java.io.IOException - in case of access I/O errorslong getSize()
0 if empty
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||