Class DeveloperSettingsServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.ajax.VitroAjaxController
-
- edu.cornell.mannlib.vitro.webapp.utils.developer.DeveloperSettingsServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="DeveloperAjax", urlPatterns="/admin/developerAjax") public class DeveloperSettingsServlet extends VitroAjaxControllerAccept an AJAX request to update the developer settings. Return an HTML representation of the developer panel from the settings and a Freemarker template. If developer mode is not enabled, the HTML response is empty. You may only control the panel if you are logged in with sufficient authorization, or if anonymous control is permitted by the settings. If you are not allowed to control the panel, then the HTML response is only a statement that developer mode is enabled. Otherwise, it is a full panel (collapsed at first).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeveloperSettingsServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoRequest(VitroRequest vreq, javax.servlet.http.HttpServletResponse resp)Sub-classes must implement this method to handle both GET and POST requests.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.ajax.VitroAjaxController
doError, doGet, doPost, requiredActions, writeTemplate
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doRequest
protected void doRequest(VitroRequest vreq, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
Description copied from class:VitroAjaxControllerSub-classes must implement this method to handle both GET and POST requests.- Specified by:
doRequestin classVitroAjaxController- Throws:
javax.servlet.ServletExceptionIOException
-
-