abstract class AttachmentsDelegate
extends java.lang.Object
Attachments delegate. An Attachments object may actually represent two fairly
different things (depending on the constructor that is used):
Attachments instance is fairly different in the two cases, this
should be considered a flaw in the API design. Unfortunately it is not possible to fix this
without breaking existing code. In particular, in Axis2 the Attachments API is heavily
used by application code. Therefore a delegation pattern is used so that internally these two
cases can be represented using distinct classes.
Note that this class is intentionally not public. It is for internal use only. However, in
a later Axiom version we may want to refactor this API to make it public, in which case
Attachments would simply become a legacy adapter.
| Constructor and Description |
|---|
AttachmentsDelegate() |
| Modifier and Type | Method and Description |
|---|---|
(package private) abstract void |
addDataHandler(java.lang.String contentID,
javax.activation.DataHandler dataHandler) |
(package private) abstract java.util.Set |
getContentIDs(boolean fetchAll) |
(package private) abstract long |
getContentLength() |
(package private) abstract javax.mail.internet.ContentType |
getContentType() |
(package private) abstract javax.activation.DataHandler |
getDataHandler(java.lang.String contentID) |
(package private) abstract IncomingAttachmentStreams |
getIncomingAttachmentStreams() |
(package private) abstract LifecycleManager |
getLifecycleManager() |
(package private) abstract java.util.Map |
getMap() |
(package private) abstract java.lang.String |
getRootPartContentID() |
(package private) abstract java.lang.String |
getRootPartContentType() |
(package private) abstract java.io.InputStream |
getRootPartInputStream(boolean preserve) |
(package private) abstract void |
removeDataHandler(java.lang.String blobContentID) |
(package private) abstract void |
setLifecycleManager(LifecycleManager manager) |
abstract javax.mail.internet.ContentType getContentType()
abstract LifecycleManager getLifecycleManager()
abstract void setLifecycleManager(LifecycleManager manager)
abstract javax.activation.DataHandler getDataHandler(java.lang.String contentID)
abstract void addDataHandler(java.lang.String contentID,
javax.activation.DataHandler dataHandler)
abstract void removeDataHandler(java.lang.String blobContentID)
abstract java.io.InputStream getRootPartInputStream(boolean preserve)
throws OMException
OMExceptionabstract java.lang.String getRootPartContentID()
abstract java.lang.String getRootPartContentType()
abstract IncomingAttachmentStreams getIncomingAttachmentStreams()
abstract java.util.Set getContentIDs(boolean fetchAll)
abstract java.util.Map getMap()
abstract long getContentLength()
throws java.io.IOException
java.io.IOException