|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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. * * @author Rob Jellinghaus (robj@unrealities.com) * @author Rick Rineholt
Field Summary | |
static String |
CIDprefix
The prefix used to assoc. |
static int |
SEND_TYPE_DEFAULT
The default attatchment type. |
static int |
SEND_TYPE_DIME
Use the DIME attatchment type. |
static int |
SEND_TYPE_MAX
|
static int |
SEND_TYPE_MIME
Use the SOAP with MIME attatchment send type. |
static int |
SEND_TYPE_NONE
Use the DIME attatchment type. |
static int |
SEND_TYPE_NOTSET
Use the default attatchment send type. |
Method Summary | |
Part |
addAttachmentPart(Part newPart)
Adds an existing attachment to this list. |
Part |
createAttachmentPart()
Create a new attachment Part in this Message. |
Part |
createAttachmentPart(Object part)
Create a new attachment Part in this Message. |
void |
dispose()
dispose of the attachments and their files; do not use the object * after making this call. |
Part |
getAttachmentByReference(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. |
Collection |
getAttachments()
This method will return all attachments as a collection. |
Iterator |
getAttachments(javax.xml.soap.MimeHeaders headers)
Retrieves all the AttachmentPart objects
* that have header entries that match the specified headers. |
long |
getContentLength()
Get the content length of the stream. |
String |
getContentType()
Write the content to the stream. |
Part |
getRootPart()
From the complex stream return the SOAP part. |
int |
getSendType()
Determine if an object is to be treated as an attchment. |
boolean |
isAttachment(Object value)
Determine if an object is to be treated as an attchment. |
void |
removeAllAttachments()
Removes all AttachmentPart objects that have
* been added to this SOAPMessage object. |
Part |
removeAttachmentPart(String reference)
This method uses getAttacmentByReference() to look for attachment. |
void |
setAttachmentParts(Collection parts)
Will the attachments of this message to that of the colleciton. |
void |
setRootPart(Part newRoot)
Sets the root part of this multipart block * * @param newRoot the new root Part |
void |
setSendType(int sendtype)
Set the format for attachments. |
void |
writeContentToStream(OutputStream os)
Write the content to the stream. |
Field Detail |
public static final int SEND_TYPE_NOTSET
public static final int SEND_TYPE_MIME
public static final int SEND_TYPE_DIME
public static final int SEND_TYPE_NONE
public static final int SEND_TYPE_MAX
public static final int SEND_TYPE_DEFAULT
public static final String CIDprefix
Method Detail |
public Part addAttachmentPart(Part newPart) throws AxisFault
AxisFault
public Part removeAttachmentPart(String reference) throws AxisFault
AxisFault
public void removeAllAttachments()
AttachmentPart
objects that have
* been added to this SOAPMessage
object.
*
* This method does not touch the SOAP part.
public Part getAttachmentByReference(String reference) throws AxisFault
AxisFault
public Collection getAttachments() throws AxisFault
AxisFault
public Iterator getAttachments(javax.xml.soap.MimeHeaders headers)
AttachmentPart
objects
* that have header entries that match the specified headers.
* Note that a returned attachment could have headers in
* addition to those specified.
*
* @param headers a MimeHeaders
* object containing the MIME headers for which to
* search
* @return an iterator over all attachments that have a header
* that matches one of the given headers
public Part createAttachmentPart(Object part) throws AxisFault
AxisFault
public Part createAttachmentPart() throws AxisFault
AxisFault
public void setAttachmentParts(Collection parts) throws AxisFault
AxisFault
public Part getRootPart()
public void setRootPart(Part newRoot)
Part
public long getContentLength() throws AxisFault
AxisFault
public void writeContentToStream(OutputStream os) throws AxisFault
AxisFault
public String getContentType() throws AxisFault
AxisFault
public int getAttachmentCount()
public boolean isAttachment(Object value)
public void setSendType(int sendtype)
public int getSendType()
public void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |