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>>
A
CamelInternalProcessorAdvice
that binds the REST DSL incoming and outgoing messages from sources of json or
xml to Java Objects.
The binding uses DataFormat
for the actual work to transform from xml/json to Java
Objects and reverse again.
The rest producer side is implemented in
invalid reference
org.apache.camel.component.rest.RestProducerBindingProcessor
-
Constructor Summary
ConstructorDescriptionRestBindingAdvice
(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, boolean enableNoContentResponse, Map<String, String> corsHeaders, Map<String, String> queryDefaultValues, boolean requiredBody, Set<String> requiredQueryParameters, Set<String> requiredHeaders) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.spi.CamelInternalProcessorAdvice
hasState
-
Constructor Details
-
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, boolean enableNoContentResponse, Map<String, String> corsHeaders, Map<String, throws ExceptionString> queryDefaultValues, boolean requiredBody, Set<String> requiredQueryParameters, Set<String> requiredHeaders) - Throws:
Exception
-
-
Method Details