1 4 5 9 10 package org.openlaszlo.servlets.responders; 11 12 import java.io.*; 13 import java.util.Properties ; 14 import javax.servlet.ServletConfig ; 15 import javax.servlet.ServletException ; 16 import javax.servlet.http.HttpServletRequest ; 17 import javax.servlet.http.HttpServletResponse ; 18 import javax.servlet.ServletOutputStream ; 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 req, HttpServletResponse 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 |