public interface DataPreProcessor
Use DataPreProcessor 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: DataPreProcessor 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.
DataPreProcessor2
,
DataPostProcessor
,
DataPostProcessor2
Modifier and Type | Method and Description |
---|---|
boolean |
execute(HashMap inputMap,
DataControllerRequest request,
Result result)
Performs custom pre-processor logic before calling the back-end service.
|
boolean execute(HashMap inputMap, DataControllerRequest request, 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 requestresult
- 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
,
Result
Copyright © 2019. All rights reserved.