Package de.xima.fc.servlet
Class FormProcessServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
de.xima.fc.servlet.AFormProcessingServlet
de.xima.fc.servlet.FormProcessServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@WebServlet(name="FormProcessServlet",
urlPatterns="/form/process/*",
asyncSupported=true)
public class FormProcessServlet
extends AFormProcessingServlet
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Validates the form request context, ie. if the user is allowed to perform the requested action.protected IExtendedFormRequestContext
createFormRequestContext
(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) Methods inherited from class de.xima.fc.servlet.AFormProcessingServlet
doGet, doOptions, doPost, exec, process, processHttp, startVorgang
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Constructor Details
-
FormProcessServlet
public FormProcessServlet()
-
-
Method Details
-
createFormRequestContext
protected IExtendedFormRequestContext createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ContextBuilderException - Specified by:
createFormRequestContext
in classAFormProcessingServlet
- Parameters:
uc
- Current user context.req
- Current HTTP request.resp
- Current HTTP response.- Returns:
- The processing context that is to be used for this request.
- Throws:
ContextBuilderException
- Allowed to be thrown when the processing context could not be built.
-
checkProcessCtx
Description copied from class:AFormProcessingServlet
Validates the form request context, ie. if the user is allowed to perform the requested action.- Specified by:
checkProcessCtx
in classAFormProcessingServlet
- Parameters:
ctx
- Current request context.- Returns:
- Whether the request is allowed.
-