Uses of Class
org.apache.camel.main.RestConfigurationProperties
-
Uses of RestConfigurationProperties in org.apache.camel.main
Methods in org.apache.camel.main that return RestConfigurationPropertiesModifier and TypeMethodDescriptionMainConfigurationProperties.rest()To configure Rest DSLRestConfigurationProperties.withApiComponent(String apiComponent) The name of the Camel component to use as the REST API (such as swagger)RestConfigurationProperties.withApiContextPath(String apiContextPath) Sets a leading API context-path the REST API services will be using.RestConfigurationProperties.withApiContextRouteId(String apiContextRouteId) Sets the route id to use for the route that services the REST API.RestConfigurationProperties.withApiHost(String apiHost) To use a specific hostname for the API documentation (such as swagger or openapi)RestConfigurationProperties.withApiProperty(String key, Object value) Adds a api propertyRestConfigurationProperties.withApiVendorExtension(boolean apiVendorExtension) Whether vendor extension is enabled in the Rest APIs.RestConfigurationProperties.withBindingMode(String bindingMode) Sets the binding mode to use.RestConfigurationProperties.withClientRequestValidation(boolean clientRequestValidation) Whether to enable validation of the client request to check: 1) Content-Type header matches what the Rest DSL consumes; returns HTTP Status 415 if validation error.RestConfigurationProperties.withComponent(String component) The Camel Rest component to use for the REST transport (consumer), such as netty-http, jetty, servlet, undertow.RestConfigurationProperties.withComponentProperty(String key, Object value) Adds a component propertyRestConfigurationProperties.withConsumerProperty(String key, Object value) Adds a consumer propertyRestConfigurationProperties.withContextPath(String contextPath) Sets a leading context-path the REST services will be using.RestConfigurationProperties.withCorsHeader(String key, String value) Adds a CORS header propertyRestConfigurationProperties.withDataFormatProperty(String key, Object value) Adds a data format propertyRestConfigurationProperties.withEnableCORS(boolean enableCORS) Whether to enable CORS headers in the HTTP response.RestConfigurationProperties.withEndpointProperty(String key, Object value) Adds a endpoint propertyThe hostname to use for exposing the REST service.RestConfigurationProperties.withHostNameResolver(String hostNameResolver) If no hostname has been explicit configured, then this resolver is used to compute the hostname the REST service will be using.RestConfigurationProperties.withInlineRoutes(boolean inlineRoutes) Inline routes in rest-dsl which are linked using direct endpoints.RestConfigurationProperties.withJsonDataFormat(String jsonDataFormat) Name of specific json data format to use.RestConfigurationProperties.withPort(int port) The port number to use for exposing the REST service.RestConfigurationProperties.withProducerApiDoc(String producerApiDoc) Sets the location of the api document (swagger api) the REST producer will use to validate the REST uri and query parameters are valid accordingly to the api document.RestConfigurationProperties.withProducerComponent(String producerComponent) Sets the name of the Camel component to use as the REST producerRestConfigurationProperties.withScheme(String scheme) The scheme to use for exposing the REST service.RestConfigurationProperties.withSkipBindingOnErrorCode(boolean skipBindingOnErrorCode) Whether to skip binding on output if there is a custom HTTP error code header.RestConfigurationProperties.withUseXForwardHeaders(boolean useXForwardHeaders) Whether to use X-Forward headers for Host and related setting.RestConfigurationProperties.withXmlDataFormat(String xmlDataFormat) Name of specific XML data format to use.