Package org.chenile.core.interceptors
Class ConstructServiceReference
java.lang.Object
org.chenile.core.interceptors.BaseChenileInterceptor
org.chenile.core.interceptors.ConstructServiceReference
- All Implemented Interfaces:
Command<ChenileExchange>
Find the correct service to invoke.
The correct service is configured by trajectories.
A trajectory definition can override the service reference for specific trajectories and
services.
- Author:
- Raja Shankar Kolluru
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPreProcessing(ChenileExchange exchange) Override this to do pre-processing.private booleanisMock(ChenileExchange exchange) private voidpopulateServiceRef(ChenileExchange exchange, String serviceId, Object ref) private booleanMethods inherited from class org.chenile.core.interceptors.BaseChenileInterceptor
bypassInterception, doContinue, doPostProcessing, execute, getExtensionByAnnotation, getExtensionByAnnotation, resumeFromSavedPoint, savePoint
-
Field Details
-
chenileConfiguration
-
-
Constructor Details
-
ConstructServiceReference
public ConstructServiceReference()
-
-
Method Details
-
doPreProcessing
Description copied from class:BaseChenileInterceptorOverride this to do pre-processing. This will be called before the service is invoked. Don't expect to see exception or response being set inChenileExchange. However you can check forChenileExchange.getBody()to manipulate the body if this interceptor is a Chenile post processor or a service specific or operation specific interceptor.
If this interceptor is a Chenile pre-processor, thenChenileExchange.getBody()will return null. Then you need to look at headers only.- Overrides:
doPreProcessingin classBaseChenileInterceptor
-
isMock
-
trajectoryDoesNotOverrideService
-
populateServiceRef
-