01: /******************************************************************************
02: * ResponderGC.java
03: * ****************************************************************************/package org.openlaszlo.servlets.responders;
04:
05: import java.io.*;
06: import java.util.Properties;
07: import javax.servlet.ServletConfig;
08: import javax.servlet.ServletException;
09: import javax.servlet.http.HttpServletRequest;
10: import javax.servlet.http.HttpServletResponse;
11: import javax.servlet.ServletOutputStream;
12: import org.openlaszlo.utils.FileUtils;
13: import org.openlaszlo.cache.RequestCache;
14: import org.openlaszlo.sc.ScriptCompiler;
15: import org.openlaszlo.cm.CompilationManager;
16: import org.apache.log4j.Logger;
17:
18: public final class ResponderGC extends ResponderAdmin {
19: private static Logger mLogger = Logger.getLogger(ResponderGC.class);
20:
21: protected void respondAdmin(HttpServletRequest req,
22: HttpServletResponse res) throws IOException {
23: System.gc();
24: respondWithXML(res, "<gc>ran garbage collector</gc>");
25: }
26:
27: public int getMimeType() {
28: return MIME_TYPE_XML;
29: }
30: }
|