org.mycore.frontend.servlets
Class MCRWebCLIServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRWebCLIServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRWebCLIServlet
- extends MCRServlet
Handles request from AJAX GUI.
- Since:
- 2.0
- Author:
- Thomas Scheffler (yagee)
- See Also:
- Serialized Form
| Methods inherited from class org.mycore.frontend.servlets.MCRServlet |
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, initTrustedProxies, render, reportException, think |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRWebCLIServlet
public MCRWebCLIServlet()
init
public void init()
throws ServletException
- Overrides:
init in class MCRServlet
- Throws:
ServletException
doGetPost
protected void doGetPost(MCRServletJob job)
throws Exception
- Provides the access for the ajax gui.
Two parameters are recognized:
request and
run
While run will not return anything else but a HTTP return
code, it is used to submit a new command to the current
MCRSession command queue (see
addCommand method).
On the other hand: request can be used to receive some
information from the command execution.
The content type of the OK response is application/x-json.
- Overrides:
doGetPost in class MCRServlet
- Throws:
Exception
getCommands
protected static List<MCRCommand> getCommands()