Package org.glassfish.admin.payload
Class PayloadFilesManager.Temp
java.lang.Object
org.glassfish.admin.payload.PayloadFilesManager
org.glassfish.admin.payload.PayloadFilesManager.Temp
- Enclosing class:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Deletes the temporary files created by this temp PayloadFilesManager.protected voidfinalize()protected voidpostExtract(File extractedFile) protected voidMethods inherited from class org.glassfish.admin.payload.PayloadFilesManager
getOutputFileURI, getParentURI, getTargetDir, processParts, processPartsExtended
-
Constructor Details
-
Temp
public Temp(File parentDir, org.glassfish.api.ActionReport report, Logger logger) throws IOException - Throws:
IOException
-
Temp
Creates a new PayloadFilesManager for temporary files.- Parameters:
report- results report to which extraction results will be appendedlogger- logger to receive messages- Throws:
IOException
-
Temp
Creates a new PayloadFilesManager for temporary files.- Parameters:
logger- logger to receive messages- Throws:
IOException
-
-
Method Details
-
cleanup
public void cleanup()Deletes the temporary files created by this temp PayloadFilesManager. -
finalize
-
postExtract
- Specified by:
postExtractin classPayloadFilesManager
-
postProcessParts
protected void postProcessParts()- Specified by:
postProcessPartsin classPayloadFilesManager
-