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 invoke cleanup() once it is finished with the
extracted files, although the finalizer will invoke cleanup if the
caller has not.
|
Method Summary |
void |
cleanup()
Deletes the temporary files created by this temp PayloadFilesManager. |
protected void |
finalize()
|
protected void |
postExtract(java.io.File extractedFile)
|
protected void |
postProcessParts()
|
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(java.io.File parentDir,
ActionReport report,
java.util.logging.Logger logger)
throws java.io.IOException
- Throws:
java.io.IOException
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(ActionReport report,
java.util.logging.Logger logger)
throws java.io.IOException
- Creates a new PayloadFilesManager for temporary files.
- Parameters:
report - results report to which extraction results will be appendedlogger - logger to receive messages
- Throws:
java.io.IOException
PayloadFilesManager.Temp
public PayloadFilesManager.Temp(java.util.logging.Logger logger)
throws java.io.IOException
- Creates a new PayloadFilesManager for temporary files.
- Parameters:
logger - logger to receive messages
- Throws:
java.io.IOException
cleanup
public void cleanup()
- Deletes the temporary files created by this temp PayloadFilesManager.
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Throwable
postExtract
protected void postExtract(java.io.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.