|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.attachments.Attachments
Field Summary | |
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
Attachments()
Use this constructor when instantiating this to store the attachments set programatically through the SwA API. |
|
Attachments(java.io.InputStream inStream,
java.lang.String contentTypeString)
Sets file cache to false. |
|
Attachments(java.io.InputStream inStream,
java.lang.String contentTypeString,
boolean fileCacheEnable,
java.lang.String attachmentRepoDir,
java.lang.String fileThreshold)
Moves the pointer to the beginning of the first MIME part. |
Method Summary | |
void |
addDataHandler(java.lang.String contentID,
javax.activation.DataHandler dataHandler)
Programatically adding an SOAP with Attachments(SwA) Attachment. |
java.lang.String[] |
getAllContentIDs()
|
java.lang.String |
getAttachmentSpecType()
|
java.util.Set |
getContentIDSet()
|
javax.activation.DataHandler |
getDataHandler(java.lang.String blobContentID)
Checks whether the MIME part is already parsed by checking the attachments HashMap. |
IncomingAttachmentStreams |
getIncomingAttachmentStreams()
Stream based access |
java.lang.String |
getSOAPPartContentID()
|
java.lang.String |
getSOAPPartContentType()
|
java.io.InputStream |
getSOAPPartInputStream()
|
void |
removeDataHandler(java.lang.String blobContentID)
Removes the DataHandler corresponding to the given contenID. |
protected void |
setEndOfStream(boolean value)
endOfStreamReached will be set to true if the message ended in MIME Style having "--" suffix with the last mime boundary |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.commons.logging.Log log
Constructor Detail |
public Attachments(java.io.InputStream inStream, java.lang.String contentTypeString, boolean fileCacheEnable, java.lang.String attachmentRepoDir, java.lang.String fileThreshold) throws OMException
inStream
- contentTypeString
- fileCacheEnable
- attachmentRepoDir
-
OMException
public Attachments(java.io.InputStream inStream, java.lang.String contentTypeString) throws OMException
inStream
- contentTypeString
-
OMException
public Attachments()
Method Detail |
public java.lang.String getAttachmentSpecType()
public javax.activation.DataHandler getDataHandler(java.lang.String blobContentID)
blobContentID
- (without the surrounding angle brackets and "cid:" prefix)
public void addDataHandler(java.lang.String contentID, javax.activation.DataHandler dataHandler)
contentID
- dataHandler
- public void removeDataHandler(java.lang.String blobContentID)
blobContentID
- public java.io.InputStream getSOAPPartInputStream() throws OMException
OMException
public java.lang.String getSOAPPartContentID()
public java.lang.String getSOAPPartContentType()
public IncomingAttachmentStreams getIncomingAttachmentStreams() throws java.lang.IllegalStateException
IncomingAttachmentStreams
java.lang.IllegalStateException
- if application has alreadt started using Part's directlypublic java.lang.String[] getAllContentIDs()
public java.util.Set getContentIDSet()
protected void setEndOfStream(boolean value)
value
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |