|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.attachments.Attachments
public class 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(InputStream inStream,
String contentTypeString)
Sets file cache to false. |
|
Attachments(InputStream inStream,
String contentTypeString,
boolean fileCacheEnable,
String attachmentRepoDir,
String fileThreshold)
Moves the pointer to the beginning of the first MIME part. |
|
Attachments(InputStream inStream,
String contentTypeString,
boolean fileCacheEnable,
String attachmentRepoDir,
String fileThreshold,
int contentLength)
Moves the pointer to the beginning of the first MIME part. |
|
Attachments(LifecycleManager manager,
InputStream inStream,
String contentTypeString,
boolean fileCacheEnable,
String attachmentRepoDir,
String fileThreshold)
Moves the pointer to the beginning of the first MIME part. |
|
Attachments(LifecycleManager manager,
InputStream inStream,
String contentTypeString,
boolean fileCacheEnable,
String attachmentRepoDir,
String fileThreshold,
int contentLength)
Moves the pointer to the beginning of the first MIME part. |
Method Summary | |
---|---|
void |
addDataHandler(String contentID,
javax.activation.DataHandler dataHandler)
Programatically adding an SOAP with Attachments(SwA) Attachment. |
String[] |
getAllContentIDs()
|
String |
getAttachmentSpecType()
|
List |
getContentIDList()
|
Set |
getContentIDSet()
|
long |
getContentLength()
If the Attachments is backed by an InputStream, then this method returns the length of the message contents (Length of the entire message - Length of the Transport Headers) |
javax.activation.DataHandler |
getDataHandler(String blobContentID)
Checks whether the MIME part is already parsed by checking the attachments HashMap. |
InputStream |
getIncomingAttachmentsAsSingleStream()
Returns the rest of mime stream. |
IncomingAttachmentStreams |
getIncomingAttachmentStreams()
Stream based access |
LifecycleManager |
getLifecycleManager()
|
Map |
getMap()
|
String |
getSOAPPartContentID()
|
String |
getSOAPPartContentType()
|
InputStream |
getSOAPPartInputStream()
|
void |
removeDataHandler(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 |
void |
setLifecycleManager(LifecycleManager manager)
|
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(LifecycleManager manager, InputStream inStream, String contentTypeString, boolean fileCacheEnable, String attachmentRepoDir, String fileThreshold) throws OMException
inStream
- contentTypeString
- fileCacheEnable
- attachmentRepoDir
-
OMException
public Attachments(LifecycleManager manager, InputStream inStream, String contentTypeString, boolean fileCacheEnable, String attachmentRepoDir, String fileThreshold, int contentLength) throws OMException
inStream
- contentTypeString
- fileCacheEnable
- attachmentRepoDir
- fileThreshold
- contentLength
-
OMException
public Attachments(InputStream inStream, String contentTypeString, boolean fileCacheEnable, String attachmentRepoDir, String fileThreshold) throws OMException
inStream
- contentTypeString
- fileCacheEnable
- attachmentRepoDir
-
OMException
public Attachments(InputStream inStream, String contentTypeString, boolean fileCacheEnable, String attachmentRepoDir, String fileThreshold, int contentLength) throws OMException
inStream
- contentTypeString
- fileCacheEnable
- attachmentRepoDir
- fileThreshold
- contentLength
-
OMException
public Attachments(InputStream inStream, String contentTypeString) throws OMException
inStream
- contentTypeString
-
OMException
public Attachments()
Method Detail |
---|
public LifecycleManager getLifecycleManager()
public void setLifecycleManager(LifecycleManager manager)
public String getAttachmentSpecType()
public javax.activation.DataHandler getDataHandler(String blobContentID)
getDataHandler
in interface OMAttachmentAccessor
blobContentID
- (without the surrounding angle brackets and "cid:" prefix)
public void addDataHandler(String contentID, javax.activation.DataHandler dataHandler)
contentID
- dataHandler
- public void removeDataHandler(String blobContentID)
blobContentID
- public InputStream getSOAPPartInputStream() throws OMException
OMException
public String getSOAPPartContentID()
public String getSOAPPartContentType()
public IncomingAttachmentStreams getIncomingAttachmentStreams() throws IllegalStateException
IncomingAttachmentStreams
IllegalStateException
- if application has alreadt started using Part's directlypublic String[] getAllContentIDs()
public Set getContentIDSet()
public Map getMap()
public List getContentIDList()
public long getContentLength() throws IOException
IOException
getMessageLength
protected void setEndOfStream(boolean value)
value
- public InputStream getIncomingAttachmentsAsSingleStream() throws IllegalStateException
IllegalStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |