org.glassfish.admin.payload
Class PayloadFilesManager.Temp

java.lang.Object
  extended by org.glassfish.admin.payload.PayloadFilesManager
      extended by org.glassfish.admin.payload.PayloadFilesManager.Temp
Enclosing class:
PayloadFilesManager

public static class PayloadFilesManager.Temp
extends PayloadFilesManager

Extracts files from a payload, treating them as temporary files. The caller should invoke cleanup() once it is finished with the extracted files, although the finalizer will invoke cleanup if the caller has not.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.glassfish.admin.payload.PayloadFilesManager
PayloadFilesManager.ActionReportHandler, PayloadFilesManager.Perm, PayloadFilesManager.Temp
 
Field Summary
 
Fields inherited from class org.glassfish.admin.payload.PayloadFilesManager
dirTimestamps, logger, strings
 
Constructor Summary
PayloadFilesManager.Temp(ActionReport report, Logger logger)
          Creates a new PayloadFilesManager for temporary files.
PayloadFilesManager.Temp(File parentDir, ActionReport report, Logger logger)
           
PayloadFilesManager.Temp(Logger logger)
          Creates a new PayloadFilesManager for temporary files.
 
Method Summary
 void cleanup()
          Deletes the temporary files created by this temp PayloadFilesManager.
protected  void finalize()
           
protected  void postExtract(File extractedFile)
           
protected  void postProcessParts()
           
 
Methods inherited from class org.glassfish.admin.payload.PayloadFilesManager
getOutputFileURI, getParentURI, getTargetDir, processParts, processPartsExtended
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayloadFilesManager.Temp

public PayloadFilesManager.Temp(File parentDir,
                                ActionReport report,
                                Logger logger)
                         throws IOException
Throws:
IOException

PayloadFilesManager.Temp

public PayloadFilesManager.Temp(ActionReport report,
                                Logger logger)
                         throws IOException
Creates a new PayloadFilesManager for temporary files.

Parameters:
report - results report to which extraction results will be appended
logger - logger to receive messages
Throws:
IOException

PayloadFilesManager.Temp

public PayloadFilesManager.Temp(Logger logger)
                         throws IOException
Creates a new PayloadFilesManager for temporary files.

Parameters:
logger - logger to receive messages
Throws:
IOException
Method Detail

cleanup

public void cleanup()
Deletes the temporary files created by this temp PayloadFilesManager.


finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

postExtract

protected void postExtract(File extractedFile)
Specified by:
postExtract in class PayloadFilesManager

postProcessParts

protected void postProcessParts()
Specified by:
postProcessParts in class PayloadFilesManager


Copyright © 2012 GlassFish Community. All Rights Reserved.