Class RestBindingAdviceFactory
java.lang.Object
org.apache.camel.support.processor.RestBindingAdviceFactory
Factory to create
RestBindingAdvice from the given configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RestBindingAdvicebuild(org.apache.camel.CamelContext camelContext, RestBindingConfiguration bc) Builds theRestBindingAdvicefrom the given configurationprotected static org.apache.camel.spi.RestClientRequestValidatorlookupRestClientRequestValidator(org.apache.camel.CamelContext camelContext) protected static voidsetupJson(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)
-
Constructor Details
-
RestBindingAdviceFactory
public RestBindingAdviceFactory()
-
-
Method Details
-
build
public static RestBindingAdvice build(org.apache.camel.CamelContext camelContext, RestBindingConfiguration bc) throws Exception Builds theRestBindingAdvicefrom the given configuration- Parameters:
camelContext- the camel contextbc- 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)
-