Methods Summary |
---|
public org.apache.axis.Part | addAttachmentPart(org.apache.axis.Part newPart)Adds an existing attachment to this list.
Note: Passed part will be bound to this message.
|
public org.apache.axis.Part | createAttachmentPart(java.lang.Object part)Create a new attachment Part in this Message.
Will actually, and always, return an AttachmentPart.
|
public org.apache.axis.Part | createAttachmentPart()Create a new attachment Part in this Message.
Will actually, and always, return an AttachmentPart.
|
public void | dispose()dispose of the attachments and their files; do not use the object
after making this call.
|
public org.apache.axis.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.
|
public int | getAttachmentCount()This is the number of attachments.
|
public java.util.Collection | getAttachments()This method will return all attachments as a collection.
|
public java.util.Iterator | getAttachments(javax.xml.soap.MimeHeaders headers)Retrieves all the AttachmentPart objects
that have header entries that match the specified headers.
Note that a returned attachment could have headers in
addition to those specified.
|
public long | getContentLength()Get the content length of the stream.
|
public java.lang.String | getContentType()Write the content to the stream.
|
public IncomingAttachmentStreams | getIncomingAttachmentStreams()Once this method is called, attachments can only be accessed via the InputStreams.
Any other access to the attachments collection (e.g. via getAttachments()) is
prohibited and will cause a ConcurrentModificationException to be thrown.
|
public org.apache.axis.Part | getRootPart()From the complex stream return the SOAP part.
|
public int | getSendType()Determine if an object is to be treated as an attchment.
|
public boolean | isAttachment(java.lang.Object value)Determine if an object is to be treated as an attchment.
|
public void | removeAllAttachments()Removes all AttachmentPart objects that have
been added to this SOAPMessage object.
This method does not touch the SOAP part.
|
public org.apache.axis.Part | removeAttachmentPart(java.lang.String reference)This method uses getAttacmentByReference() to look for attachment.
If attachment has been found, it will be removed from the list, and
returned to the user.
|
public void | setAttachmentParts(java.util.Collection parts)Will the attachments of this message to that of the colleciton.
|
public void | setRootPart(org.apache.axis.Part newRoot)Sets the root part of this multipart block
|
public void | setSendType(int sendtype)Set the format for attachments.
|
public void | writeContentToStream(java.io.OutputStream os)Write the content to the stream.
|