public interface ObjectServicePreProcessor
Use ObjectServicePreProcessor to add custom pre-processing logic to the verb of an OBJECT SERVICE before request payload is getting parsed or a back-end service call is made by the Connector.
Note: This custom hook will be executed at early filter layer which
will give more control over request payload.
ObjectServicePreProcessor
is a singleton - only one instance of this
class will be created and the same will be used for every service call.
Therefore, ObjectServicePreProcessor
should not have any user/request
specific data or state. Any data common to all the users/requests may be
stored.
Modifier and Type | Method and Description |
---|---|
void |
execute(FoundryRequestManager foundryRequestManager,
FoundryResponseManager foundryResponseManager,
FoundryRequestChain foundryRequestChain)
Executes the custom pre-processor logic
|
void execute(FoundryRequestManager foundryRequestManager, FoundryResponseManager foundryResponseManager, FoundryRequestChain foundryRequestChain) throws Exception
foundryRequestManager
- Request manager used to operate on requestfoundryResponseManager
- Response manager used to operate on responsefoundryRequestChain
- Request chain used to control the request flowException
- any error in pre-processingFoundryRequestManager
,
FoundryResponseManager
,
FoundryRequestChain
Copyright © 2019. All rights reserved.