1 package mir.storage.store;
4 * Title: ServletStoreInfo
5 * Description: Servlet displays information about the Object store.
7 * Copyright: Copyright (c) 2002
14 import javax.servlet.http.*;
15 import javax.servlet.*;
17 public class ServletStoreInfo extends HttpServlet {
19 ObjectStore ostore = ObjectStore.getInstance();
21 /** @todo servlet displays infos for ObjectStore
22 * additionally some task could be controlled: gc, and change of
23 * size of the @see StoreContainer in use.
26 public void doGet(HttpServletRequest req, HttpServletResponse res)
27 throws ServletException, IOException
32 public void doPost(HttpServletRequest req, HttpServletResponse res)
33 throws ServletException, UnavailableException, IOException
35 PrintWriter out = res.getWriter();
36 res.setContentType("text/html");
37 out.println("<html><head><title>ObjectStore</title></head><body><pre>\n");
38 out.println(ostore.toHtml(req));
39 out.println("\n</pre></body></html>");