KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > admininterface > AdminTreeMVCServlet


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2005 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.module.admininterface;
14
15 import info.magnolia.cms.servlets.MVCServlet;
16 import info.magnolia.cms.servlets.MVCServletHandler;
17
18 import javax.servlet.http.HttpServletRequest JavaDoc;
19 import javax.servlet.http.HttpServletResponse JavaDoc;
20
21 /**
22  * Main admin interface servlet. Generates the content for the main admincentral iframe.
23  * @author Fabrizio Giustina
24  * @version $Id: AdminInterfaceServlet.java 661 2005-05-03 14:10:45Z philipp $
25  */

26 public class AdminTreeMVCServlet extends MVCServlet {
27
28     /**
29      * Stable serialVersionUID.
30      */

31     private static final long serialVersionUID = 222L;
32
33     /**
34      * @see info.magnolia.cms.servlets.MVCServlet#getHandler(javax.servlet.http.HttpServletRequest)
35      */

36     protected MVCServletHandler getHandler(HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
37
38         String JavaDoc handlerName = request.getParameter("name"); //$NON-NLS-1$
39

40         return Store.getInstance().getTreeHandler(handlerName, request, response);
41     }
42 }
Popular Tags