Package org.apache.camel.processor
Class RestBindingAdvice
- java.lang.Object
-
- org.apache.camel.processor.RestBindingAdvice
-
public class RestBindingAdvice extends Object implements org.apache.camel.spi.CamelInternalProcessorAdvice<Map<String,Object>>
ACamelInternalProcessorAdvice
that binds the REST DSL incoming and outgoing messages from sources of json or xml to Java Objects. The binding usesDataFormat
for the actual work to transform from xml/json to Java Objects and reverse again. The rest producer side is implemented inorg.apache.camel.component.rest.RestProducerBindingProcessor
-
-
Constructor Summary
Constructors Constructor Description RestBindingAdvice(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.DataFormat jsonDataFormat, org.apache.camel.spi.DataFormat xmlDataFormat, org.apache.camel.spi.DataFormat outJsonDataFormat, org.apache.camel.spi.DataFormat outXmlDataFormat, String consumes, String produces, String bindingMode, boolean skipBindingOnErrorCode, boolean clientRequestValidation, boolean enableCORS, Map<String,String> corsHeaders, Map<String,String> queryDefaultValues, boolean requiredBody, Set<String> requiredQueryParameters, Set<String> requiredHeaders)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after(org.apache.camel.Exchange exchange, Map<String,Object> state)
Map<String,Object>
before(org.apache.camel.Exchange exchange)
-
-
-
Constructor Detail
-
RestBindingAdvice
public RestBindingAdvice(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.DataFormat jsonDataFormat, org.apache.camel.spi.DataFormat xmlDataFormat, org.apache.camel.spi.DataFormat outJsonDataFormat, org.apache.camel.spi.DataFormat outXmlDataFormat, String consumes, String produces, String bindingMode, boolean skipBindingOnErrorCode, boolean clientRequestValidation, boolean enableCORS, Map<String,String> corsHeaders, Map<String,String> queryDefaultValues, boolean requiredBody, Set<String> requiredQueryParameters, Set<String> requiredHeaders) throws Exception
- Throws:
Exception
-
-