org.apache.axiom.attachments.lifecycle
Interface DataHandlerExt

All Known Implementing Classes:
DataHandlerExtImpl

public interface DataHandlerExt


Method Summary
 void deleteWhenReadOnce()
          This method will give users an option to trigger a delete on temporary attachment file when DataHandler associated with the attachment is read once.
 void purgeDataSource()
          This method will give users an option to trigger a purge on temporary attachment files.
 

Method Detail

purgeDataSource

void purgeDataSource()
                     throws java.io.IOException
This method will give users an option to trigger a purge on temporary attachment files. Temp files are created for attachment data that is greater than a threshold limit. On client side These temp attachment files are not deleted untilthe virtual machine exits as user can choose to read this dataHandler. So if user is not going to use the data handlers provided on this temproray files they can choose to purge the file.

Throws:
java.io.IOException

deleteWhenReadOnce

void deleteWhenReadOnce()
                        throws java.io.IOException
This method will give users an option to trigger a delete on temporary attachment file when DataHandler associated with the attachment is read once. Temp files are created for attachment data that is greater than a threshold limit. On client side These temp attachment files are not deleted untill the virtual machine exits. This method gives options to user to trigger a delete on attachment files when they read the dataHandler once.

Throws:
java.io.IOException


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.