public interface DataPreProcessor2
Use DataPreProcessor2 to add custom pre-processing logic (like input validation or custom initialization) to the operation before a back-end service call is made by the Connector. Note: DataPreProcessor2 is a singleton - only one instance of this class is created and the same is used for every service call. Therefore, DataPreProcessor should not have any user/request specific data or state. Any data common to all the users/requests may be stored.
DataPreProcessor
,
DataPostProcessor
,
DataPostProcessor2
Modifier and Type | Method and Description |
---|---|
boolean |
execute(HashMap inputMap,
DataControllerRequest request,
DataControllerResponse response,
Result result)
Performs custom pre-processor logic before calling the back-end service.
|
boolean execute(HashMap inputMap, DataControllerRequest request, DataControllerResponse response, Result result) throws Exception
inputMap
- A map of all inputs (parameters) as defined in the service
definition. The map has parameter name (String) as key and
parameter value (Object) as the value.request
- A wrapper over actual client requestresponse
- A wrapper over actual client response to be returned to
clientresult
- A result object that will be returned after the call flow
(pre-process, back-end service call and post-process) is
completed. This object is empty at this stage.result
object may be modified to return appropriate
result to the client.Exception
- any error in pre-processingDataControllerRequest
,
DataControllerResponse
,
Result
Copyright © 2019. All rights reserved.