Package org.chenile.utils.region
Class RegionToTrajectoryConverter
java.lang.Object
org.chenile.core.interceptors.BaseChenileInterceptor
org.chenile.utils.region.RegionToTrajectoryConverter
- All Implemented Interfaces:
Command<ChenileExchange>
- Author:
- Raja Shankar Kolluru
This class accomplishes the following:
- Copy the region header to the trajectory header(if trajectory ID is empty and region ID is non empty)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doPreProcessing
(ChenileExchange exchange) Override this to do pre-processing.Methods inherited from class org.chenile.core.interceptors.BaseChenileInterceptor
bypassInterception, doContinue, doPostProcessing, execute, getExtensionByAnnotation, getExtensionByAnnotation, resumeFromSavedPoint, savePoint
-
Field Details
-
REGION_HEADER
- See Also:
-
TRAJECTORY_HEADER
- See Also:
-
ACCEPT_LANG_HEADER
- See Also:
-
locales
-
-
Constructor Details
-
RegionToTrajectoryConverter
public RegionToTrajectoryConverter()
-
-
Method Details
-
doPreProcessing
Description copied from class:BaseChenileInterceptor
Override 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:
doPreProcessing
in classBaseChenileInterceptor
-