public interface Attachments extends Serializable
If javax.activation is not available, this is the *only* class that will be compiled in org.apache.axis.attachments.
Modifier and Type | Field and Description |
---|---|
static String |
CIDprefix
The prefix used to assoc. attachments as content-id
|
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_MTOM
Use the MTOM attatchment type.
|
static int |
SEND_TYPE_NONE
Use the DIME attatchment type.
|
static int |
SEND_TYPE_NOTSET
Use the default attatchment send type.
|
Modifier and Type | Method and Description |
---|---|
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(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.
|
IncomingAttachmentStreams |
getIncomingAttachmentStreams()
Once this method is called, attachments can only be accessed via the InputStreams.
|
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
|
void |
setSendType(int sendtype)
Set the format for attachments.
|
void |
writeContentToStream(OutputStream os)
Write the content to the stream.
|
static final int SEND_TYPE_NOTSET
static final int SEND_TYPE_MIME
static final int SEND_TYPE_DIME
static final int SEND_TYPE_MTOM
static final int SEND_TYPE_NONE
static final int SEND_TYPE_MAX
static final int SEND_TYPE_DEFAULT
static final String CIDprefix
Part addAttachmentPart(Part newPart) throws AxisFault
newPart
- new part to addAxisFault
Part removeAttachmentPart(String reference) throws AxisFault
reference
- The reference that referers to an attachment.AxisFault
void removeAllAttachments()
AttachmentPart
objects that have
been added to this SOAPMessage
object.
This method does not touch the SOAP part.
Part getAttachmentByReference(String reference) throws AxisFault
reference
- The reference in the xml that referers to an attachment.AxisFault
Collection getAttachments() throws AxisFault
AxisFault
Iterator getAttachments(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.headers
- a MimeHeaders
object containing the MIME headers for which to
searchPart createAttachmentPart(Object part) throws AxisFault
part
- The part that is referencedAxisFault
Part createAttachmentPart() throws AxisFault
AxisFault
void setAttachmentParts(Collection parts) throws AxisFault
parts
- AxisFault
Part getRootPart()
void setRootPart(Part newRoot)
newRoot
- the new root Part
long getContentLength() throws AxisFault
AxisFault
void writeContentToStream(OutputStream os) throws AxisFault
os
- the streamAxisFault
String getContentType() throws AxisFault
AxisFault
int getAttachmentCount()
boolean isAttachment(Object value)
value
- the value that is to be determined if
its an attachment.void setSendType(int sendtype)
sendtype
- the format to send.
SEND_TYPE_MIME for Multipart Releated Mail type attachments.
SEND_TYPE_DIME for DIME type attachments.int getSendType()
void dispose()
IncomingAttachmentStreams getIncomingAttachmentStreams()
Copyright © The Apache Software Foundation. All Rights Reserved.