KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openlaszlo > servlets > responders > ResponderGC


1 /******************************************************************************
2  * ResponderGC.java
3  * ****************************************************************************/

4
5 /* J_LZ_COPYRIGHT_BEGIN *******************************************************
6 * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
7 * Use is subject to license terms. *
8 * J_LZ_COPYRIGHT_END *********************************************************/

9
10 package org.openlaszlo.servlets.responders;
11
12 import java.io.*;
13 import java.util.Properties JavaDoc;
14 import javax.servlet.ServletConfig JavaDoc;
15 import javax.servlet.ServletException JavaDoc;
16 import javax.servlet.http.HttpServletRequest JavaDoc;
17 import javax.servlet.http.HttpServletResponse JavaDoc;
18 import javax.servlet.ServletOutputStream JavaDoc;
19 import org.openlaszlo.utils.FileUtils;
20 import org.openlaszlo.cache.RequestCache;
21 import org.openlaszlo.sc.ScriptCompiler;
22 import org.openlaszlo.cm.CompilationManager;
23 import org.apache.log4j.Logger;
24
25 public final class ResponderGC extends ResponderAdmin
26 {
27     private static Logger mLogger = Logger.getLogger(ResponderGC.class);
28
29     protected void respondAdmin(HttpServletRequest JavaDoc req, HttpServletResponse JavaDoc res)
30         throws IOException
31     {
32         System.gc();
33         respondWithXML(res, "<gc>ran garbage collector</gc>");
34     }
35
36     public int getMimeType()
37     {
38         return MIME_TYPE_XML;
39     }
40 }
41
Popular Tags