|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.axis.attachments.AttachmentsImpl
Implements the Attachment interface, via an actual Hashmap of actual AttachmentParts.
Field Summary | |
protected java.lang.String |
contentLocation
This is the content location as specified in SOAP with Attachments. |
protected MultiPartRelatedInputStream |
mpartStream
The actual stream to manage the multi-related input stream. |
javax.mail.internet.MimeMultipart |
multipart
|
protected SOAPPart |
soapPart
|
Constructor Summary | |
AttachmentsImpl(Message msg,
java.lang.Object intialContents,
java.lang.String contentType,
java.lang.String contentLocation)
Construct one of these on a parent Message. |
Method Summary | |
Part |
createAttachmentPart(java.lang.Object datahandler)
Create an attachment part with a buried JAF data handler. |
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()
Gets the content type for the whole stream. |
Part |
getRootPart()
From the complex stream return the root part. |
boolean |
isAttachment(java.lang.Object value)
Determine if an object is to be treated as an attchment. |
void |
setAttachmentParts(java.util.Collection parts)
Add the collection of parts. |
void |
writeContentToStream(java.io.OutputStream os)
Write the content to the stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected SOAPPart soapPart
protected MultiPartRelatedInputStream mpartStream
protected java.lang.String contentLocation
public javax.mail.internet.MimeMultipart multipart
Constructor Detail |
public AttachmentsImpl(Message msg, java.lang.Object intialContents, java.lang.String contentType, java.lang.String contentLocation) throws AxisFault
msg
- the message associatedinitialContents
- should be anything but today only a stream is
supported.The
- mime content type of the stream for transports that provide
it.Method Detail |
public Part createAttachmentPart(java.lang.Object datahandler) throws AxisFault
createAttachmentPart
in interface Attachments
org.apache.axis.attachments.Attachments
The
- part that is referencedpublic void setAttachmentParts(java.util.Collection parts) throws AxisFault
setAttachmentParts
in interface Attachments
public Part getAttachmentByReference(java.lang.String reference) throws AxisFault
getAttachmentByReference
in interface Attachments
The
- reference in the xml that referers to an attachment.public java.util.Collection getAttachments() throws AxisFault
getAttachments
in interface Attachments
public Part getRootPart()
getRootPart
in interface Attachments
org.apache.axis.attachments.Attachments
public int getContentLength() throws AxisFault
getContentLength
in interface Attachments
public void writeContentToStream(java.io.OutputStream os) throws AxisFault
writeContentToStream
in interface Attachments
public java.lang.String getContentType() throws AxisFault
getContentType
in interface Attachments
public int getAttachmentCount()
getAttachmentCount
in interface Attachments
public boolean isAttachment(java.lang.Object value)
isAttachment
in interface Attachments
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 |