Class RestBindingAdvice

  • All Implemented Interfaces:
    org.apache.camel.spi.CamelInternalProcessorAdvice<Map<String,​Object>>

    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 org.apache.camel.component.rest.RestProducerBindingProcessor

    See Also:
    CamelInternalProcessor
    • 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