Class OrchestrationErrorHandler
java.lang.Object
com.skava.orchestration.transformation.OrchestrationErrorHandler
- All Implemented Interfaces:
org.apache.camel.Processor
@Service("orchestrationErrorHandler")
public class OrchestrationErrorHandler
extends Object
implements org.apache.camel.Processor
The Class OrchestrationErrorHandler
This class is used to set exception as exchange body and set response code as internal server error as header in the exchange.- Version:
- 8.0
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(org.apache.camel.Exchange exchange) This process method is used to set exchange body and headers as exception and response code respectively.
-
Constructor Details
-
OrchestrationErrorHandler
public OrchestrationErrorHandler()
-
-
Method Details
-
process
public void process(org.apache.camel.Exchange exchange) This process method is used to set exchange body and headers as exception and response code respectively.- Specified by:
process
in interfaceorg.apache.camel.Processor
- Parameters:
exchange
- Indicates aExchange
instance, which holds the information during the entire routing of a Message received by a Consumer.
-