|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Access the Attachments of a Message. This interface essentially firewalls the rest of Axis from any dependencies on javax.activation.
If javax.activation is not available, this is the *only* class that will be compiled in org.apache.axis.attachments.
Method Summary | |
Part |
createAttachmentPart(java.lang.Object part)
Create a new attachment Part in this Message. |
Part |
getAttachmentByReference(java.lang.String reference)
This method should look at a refernce and determine if it is a CID: or url to look for attachment. |
int |
getAttachmentCount()
This is the number of attachments. |
java.util.Collection |
getAttachments()
This method will return all attachments as a collection. |
int |
getContentLength()
Get the content length of the stream. |
java.lang.String |
getContentType()
Write the content to the stream. |
Part |
getRootPart()
From the complex stream return the SOAP part. |
boolean |
isAttachment(java.lang.Object value)
Determine if an object is to be treated as an attchment. |
void |
setAttachmentParts(java.util.Collection parts)
Will the attachments of this message to that of the colleciton. |
void |
writeContentToStream(java.io.OutputStream os)
Write the content to the stream. |
Method Detail |
public Part getAttachmentByReference(java.lang.String reference) throws AxisFault
The
- reference in the xml that referers to an attachment.public java.util.Collection getAttachments() throws AxisFault
public Part createAttachmentPart(java.lang.Object part) throws AxisFault
The
- part that is referencedpublic void setAttachmentParts(java.util.Collection parts) throws AxisFault
public Part getRootPart()
public int getContentLength() throws AxisFault
public void writeContentToStream(java.io.OutputStream os) throws AxisFault
public java.lang.String getContentType() throws AxisFault
public int getAttachmentCount()
public boolean isAttachment(java.lang.Object value)
value
- the value that is to be determined if
its an attachment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |