Uses of Class
org.apache.camel.model.rest.RestConfigurationDefinition
Packages that use RestConfigurationDefinition
Package
Description
The JAXB POJOs representing the part of the model, which can be used to create a view of Camel application.
The JAXB POJOs for the REST DSL
-
Uses of RestConfigurationDefinition in org.apache.camel.builder
Methods in org.apache.camel.builder that return RestConfigurationDefinitionModifier and TypeMethodDescriptionRouteBuilder.getRestConfiguration()RouteBuilder.restConfiguration()Configures the REST services -
Uses of RestConfigurationDefinition in org.apache.camel.model.app
Methods in org.apache.camel.model.app that return types with arguments of type RestConfigurationDefinitionMethod parameters in org.apache.camel.model.app with type arguments of type RestConfigurationDefinitionModifier and TypeMethodDescriptionvoidBeansDefinition.setRestConfigurations(List<RestConfigurationDefinition> restConfigs) -
Uses of RestConfigurationDefinition in org.apache.camel.model.rest
Methods in org.apache.camel.model.rest that return RestConfigurationDefinitionModifier and TypeMethodDescriptionRestConfigurationDefinition.apiComponent(String componentId) To use a specific Camel rest API componentRestConfigurationDefinition.apiContextPath(String contextPath) Sets a leading context-path the REST services will be using.RestConfigurationDefinition.apiContextRouteId(String apiContextRouteId) Sets the route id to use for the route that services the REST API.To define a specific host to use for API documentation instead of using a generated API hostname that is relative to the REST service host.RestConfigurationDefinition.apiProperty(String key, String value) For configuring an api property, such as api.title, or api.version.RestConfigurationDefinition.apiVendorExtension(boolean vendorExtension) Whether vendor extension is enabled in the Rest APIs.RestConfigurationDefinition.apiVendorExtension(String vendorExtension) Whether vendor extension is enabled in the Rest APIs.RestConfigurationDefinition.bindingMode(String bindingMode) To specify the binding modeRestConfigurationDefinition.bindingMode(RestBindingMode bindingMode) To specify the binding modeRestConfigurationDefinition.clientRequestValidation(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.RestConfigurationDefinition.clientRequestValidation(String 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.To use a specific Camel rest component (consumer)RestConfigurationDefinition.componentProperty(String key, String value) For additional configuration options on component levelRestConfigurationDefinition.consumerProperty(String key, String value) For additional configuration options on consumer levelRestConfigurationDefinition.contextPath(String contextPath) Sets a leading context-path the REST services will be using.RestConfigurationDefinition.corsAllowCredentials(boolean corsAllowCredentials) Shortcut for setting theAccess-Control-Allow-Credentialsheader.RestConfigurationDefinition.corsHeaderProperty(String key, String value) For configuring CORS headersRestConfigurationDefinition.dataFormatProperty(String key, String value) For additional configuration options on data format levelRestConfigurationDefinition.enableCORS(boolean enableCORS) To specify whether to enable CORS which means Camel will automatic include CORS in the HTTP headers in the response.RestConfigurationDefinition.enableCORS(String enableCORS) To specify whether to enable CORS which means Camel will automatic include CORS in the HTTP headers in the response.RestConfigurationDefinition.endpointProperty(String key, String value) For additional configuration options on endpoint levelTo define the host to use, such as 0.0.0.0 or localhostRestConfigurationDefinition.hostNameResolver(RestHostNameResolver hostNameResolver) To specify the hostname resolverRestConfigurationDefinition.inlineRoutes(boolean inlineRoutes) Inline routes in rest-dsl which are linked using direct endpoints.RestConfigurationDefinition.inlineRoutes(String inlineRoutes) Inline routes in rest-dsl which are linked using direct endpoints.RestConfigurationDefinition.jsonDataFormat(String name) To use a specific json data formatRestConfigurationDefinition.port(int port) To specify the port number to use for the REST serviceTo specify the port number to use for the REST serviceRestConfigurationDefinition.producerApiDoc(String apiDoc) Sets the location of the api document the REST producer will use to validate the REST uri and query parameters are valid accordingly to the api document.RestConfigurationDefinition.producerComponent(String componentId) To use a specific Camel rest component (producer)To use a specific scheme such as http/httpsRestConfigurationDefinition.skipBindingOnErrorCode(boolean skipBindingOnErrorCode) To specify whether to skip binding output if there is a custom HTTP error codeRestConfigurationDefinition.skipBindingOnErrorCode(String skipBindingOnErrorCode) To specify whether to skip binding output if there is a custom HTTP error codeRestConfigurationDefinition.useXForwardHeaders(boolean useXForwardHeaders) To specify whether to use X-Forward headers for Host and related settingRestConfigurationDefinition.useXForwardHeaders(String useXForwardHeaders) To specify whether to use X-Forward headers for Host and related settingRestConfigurationDefinition.xmlDataFormat(String name) To use a specific XML data format