Class RestBindingAdviceFactory

java.lang.Object
org.apache.camel.support.processor.RestBindingAdviceFactory

public class RestBindingAdviceFactory extends Object
Factory to create RestBindingAdvice from the given configuration.
  • Constructor Details

    • RestBindingAdviceFactory

      public RestBindingAdviceFactory()
  • Method Details

    • build

      public static RestBindingAdvice build(org.apache.camel.CamelContext camelContext, RestBindingConfiguration bc) throws Exception
      Builds the RestBindingAdvice from the given configuration
      Parameters:
      camelContext - the camel context
      bc - the binding configuration
      Returns:
      the created binding advice
      Throws:
      Exception
    • setupJson

      protected static void setupJson(org.apache.camel.CamelContext camelContext, org.apache.camel.spi.RestConfiguration config, String type, Class<?> typeClass, String outType, Class<?> outTypeClass, org.apache.camel.spi.DataFormat json, org.apache.camel.spi.DataFormat outJson) throws Exception
      Throws:
      Exception
    • lookupRestClientRequestValidator

      protected static org.apache.camel.spi.RestClientRequestValidator lookupRestClientRequestValidator(org.apache.camel.CamelContext camelContext)
    • lookupRestClientResponseValidator

      protected static org.apache.camel.spi.RestClientResponseValidator lookupRestClientResponseValidator(org.apache.camel.CamelContext camelContext)