Package com.avoka.fc.core.servlet.dd.cmd
Class FormCommandHandler
- java.lang.Object
-
- com.avoka.fc.core.servlet.dd.cmd.FormCommandHandler
-
- All Implemented Interfaces:
IDynamicDataHandler
public class FormCommandHandler extends Object implements IDynamicDataHandler
Provides a Form Command Handler class to provide an improved Form HTTP API.
The
FormCommandHandler
is responsible for request data marshaling, security and response rendering. This handler class will delegate processing work to a
FormCommandProcessor
class which is responsible for executing business logic and submission state changes.- Since:
- 17.10.0
-
-
Constructor Summary
Constructors Constructor Description FormCommandHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(Map<String,Object> parameters, HttpServletRequest request, HttpServletResponse response)
Handler the operation request.FormCommandHandler
setUnitTestMode(boolean unitTestMode)
Set the form command handler in unit test mode, which does not commit ErrorLogService changes to workaround H2 submission deadlock issue.
-
-
-
Method Detail
-
handleRequest
public void handleRequest(Map<String,Object> parameters, HttpServletRequest request, HttpServletResponse response)
Handler the operation request.- Specified by:
handleRequest
in interfaceIDynamicDataHandler
- Parameters:
parameters
- the map of request parametersrequest
- the servlet requestresponse
- the servlet response- See Also:
IDynamicDataHandler.handleRequest(Map, HttpServletRequest, HttpServletResponse)
-
setUnitTestMode
public FormCommandHandler setUnitTestMode(boolean unitTestMode)
Set the form command handler in unit test mode, which does not commit ErrorLogService changes to workaround H2 submission deadlock issue.- Parameters:
unitTestMode
- the hander to run in unit test mode- Returns:
- this form command handler
-
-