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
public static class PayloadFilesManager.Temp extends PayloadFilesManager
Extracts files from a payload, treating them as temporary files. The caller should invokecleanup()
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 Constructor Description Temp(File parentDir, ActionReport report, Logger logger)
Temp(Logger logger)
Creates a new PayloadFilesManager for temporary files.Temp(ActionReport report, Logger logger)
Creates a new PayloadFilesManager for temporary files.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
Temp
public Temp(File parentDir, ActionReport report, Logger logger) throws IOException
- Throws:
IOException
-
Temp
public Temp(ActionReport report, Logger logger) throws IOException
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
public 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
-
postExtract
protected void postExtract(File extractedFile)
- Specified by:
postExtract
in classPayloadFilesManager
-
postProcessParts
protected void postProcessParts()
- Specified by:
postProcessParts
in classPayloadFilesManager
-
-