Class EditRequestDispatchController
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.edit.n3editing.controller.EditRequestDispatchController
-
- All Implemented Interfaces:
MultipartRequestWrapper.ParsingStrategy,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="EditRequestDispatch", urlPatterns="/editRequestDispatch") public class EditRequestDispatchController extends FreemarkerHttpServletThis servlet is intended to handle all requests to create a form for use by the N3 editing system. It will examine the request parameters, determine which form to use, execute a EditConfiguration setup, and evaluate the view indicated by the EditConfiguration. Do not add code to this class to achieve some behavior in a form. Try adding the behavior logic to the code that generates the EditConfiguration for the form.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
FreemarkerHttpServlet.Template
-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
VitroHttpServlet.PickListSorter
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.commons.logging.Loglog-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
BODY_TEMPLATE_TYPE, PAGE_TEMPLATE_TYPE
-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
HTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE
-
-
Constructor Summary
Constructors Constructor Description EditRequestDispatchController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResponseValuesprocessRequest(VitroRequest vreq)protected AuthorizationRequestrequiredActions(VitroRequest vreq)By default, a page requires authorization for no actions.-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.freemarker.FreemarkerHttpServlet
doException, doForward, doGet, doPost, doRdf, doRedirect, doResponse, doTemplate, getBeansWrapper, getDisplayModelMenu, getFreemarkerComponentsForJsp, getPageTemplateName, getPageTemplateValues, getThemeDir, getTitle, handleException, processTemplate, processTemplateToString, wrap, wrap, write, writePage, writeTemplate, writeTemplate
-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
dumpRequestParameters, isAuthorizedToDisplayPage, maximumMultipartFileSize, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList, stashFileSizeException
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Method Detail
-
requiredActions
protected AuthorizationRequest requiredActions(VitroRequest vreq)
Description copied from class:FreemarkerHttpServletBy default, a page requires authorization for no actions. Subclasses that require authorization to process their page will override to return the actions that require authorization. In some cases, the choice of actions will depend on the contents of the request. NB This method can't be static, because then the superclass method gets called rather than the subclass method. For the same reason, it can't refer to a static or instance field REQUIRED_ACTIONS which is overridden in the subclass.- Overrides:
requiredActionsin classFreemarkerHttpServlet
-
processRequest
protected ResponseValues processRequest(VitroRequest vreq)
- Overrides:
processRequestin classFreemarkerHttpServlet
-
-