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.ServletOutputStream ; 17 import javax.servlet.http.HttpServletRequest ; 18 import javax.servlet.http.HttpServletResponse ; 19 import org.openlaszlo.server.LPS; 20 import org.openlaszlo.utils.FileUtils; 21 import org.apache.log4j.Logger; 22 23 public final class ResponderSERVERINFO extends ResponderAdmin 24 { 25 private static Logger mLogger = Logger.getLogger(ResponderSERVERINFO.class); 26 27 protected void respondAdmin(HttpServletRequest req, HttpServletResponse res) 28 throws IOException 29 { 30 ServletOutputStream out = res.getOutputStream(); 31 try { 32 res.setContentType("text/xml"); 33 out.println(LPS.getInfo(req, mContext, "lps-server-info")); 34 } finally { 35 FileUtils.close(out); 36 } 37 } 38 39 public int getMimeType() 40 { 41 return MIME_TYPE_XML; 42 } 43 } 44 | Popular Tags |