Uses of Class
org.chenile.core.context.ChenileExchange
Packages that use ChenileExchange
Package
Description
The Cache interceptor is here.
Cloud edge switch - the interceptor class is defined here
Chenile core beans are initialized in Spring.
Registers key chenile proxy beans in spring
Registers the key query beans in Spring
The core Chenile exchange objects are defined here.
Contains the core Chenile entry point which serves as the entry for the
Chenile ecosystem.
Event processing and logging classes.
Core Chenile initialization and discovery of all Chenile services.
Define Core Chenile interceptors
The chief model classes that contain Service and Operation information.
The Chenile transformation framework that transforms JSON to Object.
Contains the Gherkin language support for Non Rest interactions
This package defines the HTTP entry point for invoking a Chenile service.
The entry point for Chenile MQTT
Contains Chenile proxy builder class.
Chenile proxy interceptors.
Chenile proxy interpolations
Contains key interceptors that can be used in conjunction with the Chenile Query service.
Defines base security constructs.
This class contains the
SecurityInterceptorDefines annotations to define the authorities for a service / operation.
Defines basic security interfaces for the current user and for services / operations
Implementations for Security which do not make assumptions about the actual security
implementation.
Workflow entry, exit commands etc.
-
Uses of ChenileExchange in org.chenile.cache.interceptor
Methods in org.chenile.cache.interceptor with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected booleanCacheInterceptor.bypassInterception(ChenileExchange exchange) voidCacheInterceptor.execute(ChenileExchange exchange) private CacheKeyCacheInterceptor.generate(ChenileExchange exchange) CacheInterceptor.getCache(ChenileExchange exchange) private ObjectCacheInterceptor.key(ChenileExchange exchange, ParamDefinition p) -
Uses of ChenileExchange in org.chenile.cloudedgeswitch.interceptor
Methods in org.chenile.cloudedgeswitch.interceptor with parameters of type ChenileExchangeModifier and TypeMethodDescriptionCloudEdgeSwitch.addMqttTargetHeaderIfRequired(ChenileExchange exchange) If this message came from MQTT then the original source must not be receiving this message since that would create duplicates.protected booleanCloudEdgeSwitch.bypassInterception(ChenileExchange exchange) private booleanCloudEdgeSwitch.callCloud(ChenileExchange exchange) Switch to cloud proxy and invoke it via httpprivate booleanCloudEdgeSwitch.callEdge(ChenileExchange exchange, Object serviceReference, ChainContext.SavePoint savePoint) private voidCloudEdgeSwitch.enhanceWarnings(ErrorNumException exception, ChenileExchange exchange) voidCloudEdgeSwitch.execute(ChenileExchange exchange) private ObjectCloudEdgeSwitch.getRemoteProxy(ChenileExchange exchange) private voidCloudEdgeSwitch.handleCloud(ChenileExchange exchange) In the cloud, execute the actual service Upon successful return, send a message to MQTT topicprivate voidCloudEdgeSwitch.handleEdge(ChenileExchange exchange) In the edge, we will delegate the control to the cloud.private voidCloudEdgeSwitch.handleHttp(ChenileExchange exchange) private voidCloudEdgeSwitch.handleMqtt(ChenileExchange exchange) In MQTT, if the message comes to the edge, call the service as usual If it is the cloud, handle it like you do HTTP messagesprivate voidCloudEdgeSwitch.publishMessage(ChenileExchange exchange, Map<String, Object> headers) private voidCloudEdgeSwitch.switchServiceReference(Object ref, ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.configuration.core
Methods in org.chenile.configuration.core that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionChenileCoreConfiguration.chenileHighway()ChenileCoreConfiguration.chenileInterceptorChain()ChenileCoreConfiguration.chenileOrchExecutor()ChenileCoreConfiguration.exceptionHandlerInterpolation()ChenileCoreConfiguration.operationSpecificProcessorsInterpolation()ChenileCoreConfiguration.postProcessorsInterpolation()ChenileCoreConfiguration.preProcessorsInterpolation()ChenileCoreConfiguration.serviceSpecificProcessorsInterpolation() -
Uses of ChenileExchange in org.chenile.configuration.proxy
Methods in org.chenile.configuration.proxy that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionProxyConfiguration.chenileProxyHighway()ProxyConfiguration.chenileProxyInterceptorChain()ProxyConfiguration.chenileProxyOrchExecutor()(package private) Chain<ChenileExchange>ProxyConfiguration.httpChain()ProxyConfiguration.operationSpecificClientProcessorsInterpolation()ProxyConfiguration.serviceSpecificClientProcessorsInterpolation() -
Uses of ChenileExchange in org.chenile.configuration.query.service
Methods in org.chenile.configuration.query.service that return types with arguments of type ChenileExchangeModifier and TypeMethodDescription(package private) Function<ChenileExchange,String[]> QueryConfiguration.queryAuthorities(QueryDefinitions queryDefinitions) -
Uses of ChenileExchange in org.chenile.core.context
Fields in org.chenile.core.context with type parameters of type ChenileExchangeModifier and TypeFieldDescriptionprivate ChainContext<ChenileExchange>ChenileExchange.chainContextInternal field for the purpose of continuing the interceptor chain.Methods in org.chenile.core.context that return ChenileExchangeModifier and TypeMethodDescriptionChenileExchangeBuilder.makeExchange(String serviceName, String opName, HeaderCopier headerCopier) Methods in org.chenile.core.context that return types with arguments of type ChenileExchangeMethods in org.chenile.core.context with parameters of type ChenileExchangeModifier and TypeMethodDescriptionvoidHeaderCopier.copy(ChenileExchange exchange) voidPopulateContextContainer.copy(ChenileExchange exchange) protected voidPopulateContextContainer.doPostProcessing(ChenileExchange exchange) protected voidPopulateContextContainer.doPreProcessing(ChenileExchange exchange) static voidPopulateContextContainer.populateChenileExchangeFromContext(ChenileExchange exchange, ContextContainer contextContainer) static voidPopulateContextContainer.populateContextFromChenileExchange(ChenileExchange exchange, ContextContainer contextContainer) Method parameters in org.chenile.core.context with type arguments of type ChenileExchangeModifier and TypeMethodDescriptionvoidChenileExchange.setChainContext(ChainContext<ChenileExchange> chainContext) Constructors in org.chenile.core.context with parameters of type ChenileExchange -
Uses of ChenileExchange in org.chenile.core.entrypoint
Fields in org.chenile.core.entrypoint with type parameters of type ChenileExchangeModifier and TypeFieldDescriptionprivate OrchExecutor<ChenileExchange>ChenileEntryPoint.chenileOrchExecutorMethods in org.chenile.core.entrypoint with parameters of type ChenileExchangeModifier and TypeMethodDescriptionvoidChenileEntryPoint.execute(ChenileExchange chenileExchange) -
Uses of ChenileExchange in org.chenile.core.event
Methods in org.chenile.core.event with parameters of type ChenileExchangeModifier and TypeMethodDescriptionvoidEventProcessor.handleEvent(ChenileEventDefinition ced, ChenileExchange chenileExchange) protected voidEventProcessor.setHeaders(ChenileExchange chenileExchange) An Extension point to allow subclasses to set the headers in the Chenile Exchange prior to invoking it. -
Uses of ChenileExchange in org.chenile.core.init
Fields in org.chenile.core.init with type parameters of type ChenileExchangeModifier and TypeFieldDescriptionprivate final List<Command<ChenileExchange>>AbstractServiceInitializer.InterceptorChain.commandListMethods in org.chenile.core.init that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionstatic Command<ChenileExchange>AbstractServiceInitializer.constructBodyTypeInterceptorsChain(String[] bodyTypeInterceptors, ApplicationContext applicationContext) private List<Command<ChenileExchange>>AbstractServiceInitializer.initInterceptors(List<String> interceptorCommandNames) Methods in org.chenile.core.init with parameters of type ChenileExchangeModifier and TypeMethodDescriptionvoidAbstractServiceInitializer.InterceptorChain.execute(ChenileExchange exchange) Constructor parameters in org.chenile.core.init with type arguments of type ChenileExchange -
Uses of ChenileExchange in org.chenile.core.interceptors
Methods in org.chenile.core.interceptors with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected booleanBaseChenileInterceptor.bypassInterception(ChenileExchange exchange) Over-ride this to bypass interception in special circumstancesprotected booleanLogOutput.bypassInterception(ChenileExchange exchange) private voidServiceInvoker.constructApiInvocation(ChenileExchange exchange) populates the apiInvocation for use by the invokeApi() call aboveprivate voidLogOutput.copyParamHeaders(LogRecord record, ChenileExchange exchange) protected final voidBaseChenileInterceptor.doContinue(ChenileExchange exchange) This method needs to be called if you wish to continue processing with the rest of the interception chain.protected voidBaseChenileInterceptor.doPostProcessing(ChenileExchange exchange) Override this to do post processing.protected voidChenileExceptionHandler.doPostProcessing(ChenileExchange exchange) protected voidGenericResponseBuilder.doPostProcessing(ChenileExchange chenileExchange) protected voidLogOutput.doPostProcessing(ChenileExchange chenileExchange) protected voidValidateCopyHeaders.doPostProcessing(ChenileExchange exchange) protected voidBaseChenileInterceptor.doPreProcessing(ChenileExchange exchange) Override this to do pre-processing.protected voidConstructServiceReference.doPreProcessing(ChenileExchange exchange) protected voidValidateCopyHeaders.doPreProcessing(ChenileExchange exchange) voidBaseChenileInterceptor.execute(ChenileExchange exchange) If this method is over-ridden, make sure that you call doContinue unless you want to end the chain here! This is very important.voidServiceInvoker.execute(ChenileExchange chenileExchange) private static MultipartFileServiceInvoker.extractMultipart(String name, ChenileExchange exchange) protected <T extends Annotation>
TBaseChenileInterceptor.getExtensionByAnnotation(Class<T> klass, ChenileExchange exchange) BaseChenileInterceptor.getExtensionByAnnotation(String name, ChenileExchange exchange) Deprecated.private HttpStatusGenericResponseBuilder.getSuccessHttpStatus(ChenileExchange exchange) private voidServiceInvoker.invokeApi(ChenileExchange exchange) private booleanConstructServiceReference.isMock(ChenileExchange exchange) private LogRecordLogOutput.makeLogRecord(ChenileExchange exchange) private voidGenericResponseBuilder.populateResponseMessages(GenericResponse<Object> genericResponse, ChenileExchange exchange) private voidConstructServiceReference.populateServiceRef(ChenileExchange exchange, String serviceId, Object ref) private voidGenericResponseBuilder.processFailure(ChenileExchange exchange) private voidGenericResponseBuilder.processSuccess(ChenileExchange exchange) protected voidBaseChenileInterceptor.resumeFromSavedPoint(ChainContext.SavePoint savePoint, ChenileExchange exchange) protected ChainContext.SavePointBaseChenileInterceptor.savePoint(ChenileExchange exchange) This is used when an interceptor needs to save the current position in the interceptor chain with the intent of continuing again from the saved point.private booleanConstructServiceReference.trajectoryDoesNotOverrideService(ChenileExchange exchange) protected voidChenileExceptionHandler.translateErrors(ChenileExchange exchange) private voidChenileExceptionHandler.translateResponseMessages(ChenileExchange exchange) protected voidChenileExceptionHandler.translateWarnings(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.core.interceptors.interpolations
Methods in org.chenile.core.interceptors.interpolations that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionprotected List<Command<ChenileExchange>>ExceptionHandlerInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>OperationSpecificProcessorsInterpolation.fetchCommands(ChenileExchange exchange) protected List<Command<ChenileExchange>>PostProcessorsInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>PreProcessorsInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>ServiceSpecificProcessorsInterpolation.fetchCommands(ChenileExchange exchange) Methods in org.chenile.core.interceptors.interpolations with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected List<Command<ChenileExchange>>ExceptionHandlerInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>OperationSpecificProcessorsInterpolation.fetchCommands(ChenileExchange exchange) protected List<Command<ChenileExchange>>PostProcessorsInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>PreProcessorsInterpolation.fetchCommands(ChenileExchange context) protected List<Command<ChenileExchange>>ServiceSpecificProcessorsInterpolation.fetchCommands(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.core.model
Fields in org.chenile.core.model with type parameters of type ChenileExchangeModifier and TypeFieldDescriptionprotected Command<ChenileExchange>ChenileServiceDefinition.bodyTypeSelectorprotected Command<ChenileExchange>OperationDefinition.bodyTypeSelectorSometimes it is possible that the output is not specifiable since it can vary depending on the value of some headers.private List<Command<ChenileExchange>>ChenileServiceDefinition.clientInterceptorCommandsprotected List<Command<ChenileExchange>>OperationDefinition.clientInterceptorCommandsprivate List<Command<ChenileExchange>>ChenileServiceDefinition.interceptorCommandsprotected List<Command<ChenileExchange>>OperationDefinition.interceptorCommandsprivate List<Command<ChenileExchange>>ChenileConfiguration.postProcessorCommandsprivate List<Command<ChenileExchange>>ChenileConfiguration.preProcessorCommandsMethods in org.chenile.core.model that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionChenileServiceDefinition.getBodyTypeSelector()OperationDefinition.getBodyTypeSelector()ChenileServiceDefinition.getClientInterceptorCommands()OperationDefinition.getClientInterceptorCommands()ChenileServiceDefinition.getInterceptorCommands()OperationDefinition.getInterceptorCommands()ChenileConfiguration.getPostProcessorCommands()ChenileConfiguration.getPreProcessorCommands()Method parameters in org.chenile.core.model with type arguments of type ChenileExchangeModifier and TypeMethodDescriptionvoidChenileServiceDefinition.setBodyTypeSelector(Command<ChenileExchange> bodyTypeSelector) voidOperationDefinition.setBodyTypeSelector(Command<ChenileExchange> command) voidChenileServiceDefinition.setClientInterceptorCommands(List<Command<ChenileExchange>> clientInterceptorCommands) voidOperationDefinition.setClientInterceptorCommands(List<Command<ChenileExchange>> clientInterceptorCommands) voidChenileServiceDefinition.setInterceptorCommands(List<Command<ChenileExchange>> interceptorCommands) voidOperationDefinition.setInterceptorCommands(List<Command<ChenileExchange>> commands) -
Uses of ChenileExchange in org.chenile.core.transform
Methods in org.chenile.core.transform that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionprivate Command<ChenileExchange>TransformationClassSelector.obtainBodyTypeSelector(ChenileExchange exchange) Methods in org.chenile.core.transform with parameters of type ChenileExchangeModifier and TypeMethodDescriptionvoidTransformationClassSelector.doPreProcessing(ChenileExchange exchange) voidTransformer.doPreProcessing(ChenileExchange exchange) voidSubclassBodyTypeSelector.execute(ChenileExchange exchange) private Command<ChenileExchange>TransformationClassSelector.obtainBodyTypeSelector(ChenileExchange exchange) private voidTransformationClassSelector.setDefaultBodyType(ChenileExchange exchange) private voidTransformer.throwBadRequestException(ChenileExchange exchange, Exception e) -
Uses of ChenileExchange in org.chenile.cucumber.nonrest
Methods in org.chenile.cucumber.nonrest that return ChenileExchangeModifier and TypeMethodDescriptionprivate ChenileExchangeCukesSteps.makeExchange(String serviceName, String operationName) -
Uses of ChenileExchange in org.chenile.filewatch.handler
Methods in org.chenile.filewatch.handler with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate voidFileProcessor.copyHeadersToExchange(ChenileExchange exchange, Properties headers) -
Uses of ChenileExchange in org.chenile.http.handler
Methods in org.chenile.http.handler that return ChenileExchangeModifier and TypeMethodDescriptionprivate ChenileExchangeControllerSupport.makeExchange(HttpServletRequest request, String opName, Object[] args) Methods in org.chenile.http.handler with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate voidControllerSupport.enhanceBodyWithWarnings(ResponseEntity.BodyBuilder bodyBuilder, ChenileExchange chenileExchange) private voidControllerSupport.populateBody(ChenileExchange chenileExchange, Object[] args) private voidHttpEntryPoint.processFailure(ChenileExchange exchange, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) private voidHttpEntryPoint.processResponse(ChenileExchange exchange, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) private voidHttpEntryPoint.processResponsePdf(ChenileExchange exchange, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, int httpStatusCode) private voidHttpEntryPoint.processSuccess(ChenileExchange exchange, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) private voidHttpEntryPoint.processWarningsIfAny(ChenileExchange exchange, HttpServletResponse httpServletResponse) private voidHttpEntryPoint.setBody(HttpServletRequest httpServletRequest, ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.mqtt.entry
Methods in org.chenile.mqtt.entry that return ChenileExchangeModifier and TypeMethodDescriptionprivate ChenileExchangeMqttEntryPoint.makeExchange(String topic) topic will be in the format /some/stuff/serviceName/operationName extract the service name and operation name from the topicMethods in org.chenile.mqtt.entry with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate voidMqttEntryPoint.populateHeaders(org.eclipse.paho.mqttv5.common.MqttMessage message, ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.proxy.builder
Fields in org.chenile.proxy.builder with type parameters of type ChenileExchangeModifier and TypeFieldDescription(package private) OrchExecutor<ChenileExchange>ProxyBuilder.chenileProxyOrchExecutorMethods in org.chenile.proxy.builder with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate voidProxyBuilder.ProxyClass.populateArgs(ChenileExchange exchange, Object[] args) -
Uses of ChenileExchange in org.chenile.proxy.interceptors
Fields in org.chenile.proxy.interceptors declared as ChenileExchangeModifier and TypeFieldDescriptionprivate final ChenileExchangeChenileResponseHandler.chenileExchangeMethods in org.chenile.proxy.interceptors with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate StringProxyTypeRouter.computeDynamic(ChenileExchange exchange) protected StringProxyTypeRouter.computeRoutingString(ChenileExchange exchange) private static StringHttpInvoker.constructUrl(String contextPath, String url, ChenileExchange exchange) Constructs the URL taking care of path variablesprotected voidResponseBodyTypeSelector.doPreProcessing(ChenileExchange exchange) voidHttpInvoker.execute(ChenileExchange exchange) voidLocalProxyInvoker.execute(ChenileExchange exchange) private HttpHeadersHttpInvoker.extractHeaders(ChenileExchange exchange) protected RestTemplateHttpInvoker.getRestTemplate(ChenileExchange chenileExchange) private voidHttpInvoker.populateResponse(ResponseEntity<GenericResponse<?>> httpResponse, String baseURI, String serviceOpName, ChenileExchange exchange) private StringProxyTypeRouter.proxyMode(ChenileExchange exchange) private voidHttpInvoker.setCorrectException(ChenileExchange exchange, Object[] eArgs, RestClientException e) Constructors in org.chenile.proxy.interceptors with parameters of type ChenileExchangeModifierConstructorDescriptionChenileResponseHandler(ChenileExchange exchange, ObjectMapper objectMapper) -
Uses of ChenileExchange in org.chenile.proxy.interceptors.interpolations
Methods in org.chenile.proxy.interceptors.interpolations that return types with arguments of type ChenileExchangeModifier and TypeMethodDescriptionprotected List<Command<ChenileExchange>>OperationSpecificClientProcessorsInterpolation.fetchCommands(ChenileExchange exchange) protected List<Command<ChenileExchange>>ServiceSpecificClientProcessorsInterpolation.fetchCommands(ChenileExchange exchange) Methods in org.chenile.proxy.interceptors.interpolations with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected List<Command<ChenileExchange>>OperationSpecificClientProcessorsInterpolation.fetchCommands(ChenileExchange exchange) protected List<Command<ChenileExchange>>ServiceSpecificClientProcessorsInterpolation.fetchCommands(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.query.service.interceptor
Methods in org.chenile.query.service.interceptor with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected voidQuerySAASInterceptor.doPreProcessing(ChenileExchange exchange) protected voidQueryUserFilterInterceptor.doPreProcessing(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.scheduler.jobs
Methods in org.chenile.scheduler.jobs with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate voidScheduledJob.copyHeaders(ChenileExchange exchange, org.quartz.JobExecutionContext context) -
Uses of ChenileExchange in org.chenile.security
Methods in org.chenile.security with parameters of type ChenileExchangeModifier and TypeMethodDescriptionbooleanSecurityServiceImpl.doesCurrentUserHaveGuardingAuthorities(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.security.interceptor
Methods in org.chenile.security.interceptor with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected booleanSecurityInterceptor.bypassInterception(ChenileExchange exchange) This bypasses the logic only if the security config is configured to be unprotected or if the security config does not exist at all.
Also, we will only enforce it in the HTTP end point.protected voidSecurityInterceptor.doPreProcessing(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.security.model
Methods in org.chenile.security.model with parameters of type ChenileExchangeModifier and TypeMethodDescriptionString[]AuthoritiesSupplier.getAuthorities(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.security.service
Methods in org.chenile.security.service with parameters of type ChenileExchangeModifier and TypeMethodDescriptionbooleanSecurityService.doesCurrentUserHaveGuardingAuthorities(ChenileExchange exchange) String[]SecurityConfigService.getGuardingAuthorities(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.security.service.impl
Methods in org.chenile.security.service.impl with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprivate String[]SecurityConfigServiceImpl.executeAuthoritiesSupplier(Object obj, ChenileExchange exchange) String[]SecurityConfigServiceImpl.getGuardingAuthorities(ChenileExchange exchange) private SecurityConfigSecurityConfigServiceImpl.getSecurityConfig(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.utils.region
Methods in org.chenile.utils.region with parameters of type ChenileExchangeModifier and TypeMethodDescriptionprotected voidRegionToTrajectoryConverter.doPreProcessing(ChenileExchange exchange) -
Uses of ChenileExchange in org.chenile.workflow.service.stmcmds
Methods in org.chenile.workflow.service.stmcmds that return types with arguments of type ChenileExchangeMethods in org.chenile.workflow.service.stmcmds with parameters of type ChenileExchange