Class DataHandlerExtImpl
- java.lang.Object
-
- javax.activation.DataHandler
-
- org.apache.axiom.attachments.lifecycle.impl.DataHandlerExtImpl
-
- All Implemented Interfaces:
Transferable,Observer,DataHandlerExt
public class DataHandlerExtImpl extends DataHandler implements DataHandlerExt, Observer
-
-
Constructor Summary
Constructors Constructor Description DataHandlerExtImpl(DataHandler dataHandler, LifecycleManager manager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeleteWhenReadOnce()This method will give users an option to trigger a delete on temporary attachment file when DataHandler associated with the attachment is read once.voidpurgeDataSource()This method will give users an option to trigger a purge on temporary attachment files.voidupdate(Observable o, Object arg)-
Methods inherited from class javax.activation.DataHandler
getAllCommands, getBean, getCommand, getContent, getContentType, getDataSource, getInputStream, getName, getOutputStream, getPreferredCommands, getTransferData, getTransferDataFlavors, isDataFlavorSupported, setCommandMap, setDataContentHandlerFactory, writeTo
-
-
-
-
Constructor Detail
-
DataHandlerExtImpl
public DataHandlerExtImpl(DataHandler dataHandler, LifecycleManager manager)
-
-
Method Detail
-
deleteWhenReadOnce
public void deleteWhenReadOnce() throws IOExceptionDescription copied from interface:DataHandlerExtThis 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.- Specified by:
deleteWhenReadOncein interfaceDataHandlerExt- Throws:
IOException
-
purgeDataSource
public void purgeDataSource() throws IOExceptionDescription copied from interface:DataHandlerExtThis 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.- Specified by:
purgeDataSourcein interfaceDataHandlerExt- Throws:
IOException
-
update
public void update(Observable o, Object arg)
-
-