|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tomcat.util.http.fileupload.FileCleanerCleanup
public class FileCleanerCleanup
A servlet context listener, which ensures that the
FileCleaner's
reaper thread is terminated,
when the web application is destroyed.
| Field Summary | |
|---|---|
static java.lang.String |
FILE_CLEANING_TRACKER_ATTRIBUTE
Attribute name, which is used for storing an instance of FileCleaningTracker in the web application. |
| Constructor Summary | |
|---|---|
FileCleanerCleanup()
|
|
| Method Summary | |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
Called when the web application is being destroyed. |
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
Called when the web application is initialized. |
static FileCleaningTracker |
getFileCleaningTracker(javax.servlet.ServletContext pServletContext)
Returns the instance of FileCleaningTracker, which is
associated with the given ServletContext. |
static void |
setFileCleaningTracker(javax.servlet.ServletContext pServletContext,
FileCleaningTracker pTracker)
Sets the instance of FileCleaningTracker, which is
associated with the given ServletContext. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String FILE_CLEANING_TRACKER_ATTRIBUTE
FileCleaningTracker in the web application.
| Constructor Detail |
|---|
public FileCleanerCleanup()
| Method Detail |
|---|
public static FileCleaningTracker getFileCleaningTracker(javax.servlet.ServletContext pServletContext)
FileCleaningTracker, which is
associated with the given ServletContext.
pServletContext - The servlet context to query
public static void setFileCleaningTracker(javax.servlet.ServletContext pServletContext,
FileCleaningTracker pTracker)
FileCleaningTracker, which is
associated with the given ServletContext.
pServletContext - The servlet context to modifypTracker - The tracker to setpublic void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenersce - The servlet context, used for calling
setFileCleaningTracker(ServletContext, FileCleaningTracker).public void contextDestroyed(javax.servlet.ServletContextEvent sce)
FileCleaningTracker.exitWhenFinished().
contextDestroyed in interface javax.servlet.ServletContextListenersce - The servlet context, used for calling
getFileCleaningTracker(ServletContext).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||