public abstract class AFormProcessingServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
AFormProcessingServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
checkProcessCtx(IExtendedFormRequestContext ctx)
Validates the form request context, ie. if the user is allowed to perform the requested action.
|
protected abstract IExtendedFormRequestContext |
createFormRequestContext(UserContext uc,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected boolean |
exec(IExtendedFormRequestContext requestCtx) |
protected void |
process(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp) |
protected boolean |
processHttp(IExtendedFormRequestContext requestCtx) |
protected abstract void |
respondWorkflowAfterSubmit(IFormProcessContext processCtx,
IExtendedFormRequestContext requestCtx) |
protected void |
startVorgang(IExtendedFormRequestContext requestCtx,
IXForm xform) |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
IOException
protected void process(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws UnsupportedEncodingException
UnsupportedEncodingException
protected boolean exec(IExtendedFormRequestContext requestCtx)
protected boolean processHttp(IExtendedFormRequestContext requestCtx)
protected void startVorgang(IExtendedFormRequestContext requestCtx, IXForm xform)
protected abstract void respondWorkflowAfterSubmit(IFormProcessContext processCtx, IExtendedFormRequestContext requestCtx) throws IOException
IOException
protected abstract IExtendedFormRequestContext createFormRequestContext(UserContext uc, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws ContextBuilderException
uc
- Current user context.req
- Current HTTP request.resp
- Current HTTP response.ContextBuilderException
- Allowed to be thrown when the processing context could not be built.protected abstract boolean checkProcessCtx(IExtendedFormRequestContext ctx)
ctx
- Current request context.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.