KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > core > CacheProcess


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.core;
14
15 import javax.servlet.http.HttpServletRequest JavaDoc;
16
17
18 /**
19  * Thread responsible to start a cache process. This will only work if a valid request object has been initialized
20  * before
21  * @author Sameer Charles
22  * @version $Revision $ ($Author $)
23  */

24 public class CacheProcess extends Thread JavaDoc {
25
26     /**
27      * request
28      */

29     private HttpServletRequest JavaDoc request;
30
31     /**
32      * This request will be used to stream data
33      * @param request HttpServletRequest
34      */

35     public CacheProcess(HttpServletRequest JavaDoc request) {
36         this.request = request;
37     }
38
39     /**
40      * Executes CacheHandler cache method in background
41      */

42     public void run() {
43         CacheHandler.cacheURI(this.request);
44     }
45 }
46
Popular Tags