Interface ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- Enclosing interface:
- ValidatorEndpointBuilderFactory
public static interface ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Advanced builder for endpoint for the Validator component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()
errorHandler
(String errorHandler) To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler.errorHandler
(org.apache.camel.support.processor.validation.ValidatorErrorHandler errorHandler) To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler.lazyStartProducer
(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message).lazyStartProducer
(String lazyStartProducer) Whether the producer should be started lazy (on the first message).resourceResolver
(String resourceResolver) To use a custom LSResourceResolver.resourceResolver
(LSResourceResolver resourceResolver) To use a custom LSResourceResolver.resourceResolverFactory
(String resourceResolverFactory) To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI.resourceResolverFactory
(org.apache.camel.component.validator.ValidatorResourceResolverFactory resourceResolverFactory) To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI.schemaFactory
(String schemaFactory) To use a custom javax.xml.validation.SchemaFactory.schemaFactory
(SchemaFactory schemaFactory) To use a custom javax.xml.validation.SchemaFactory.schemaLanguage
(String schemaLanguage) Configures the W3C XML Schema Namespace URI.useSharedSchema
(boolean useSharedSchema) Whether the Schema instance should be shared or not.useSharedSchema
(String useSharedSchema) Whether the Schema instance should be shared or not.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
basic
-
lazyStartProducer
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder lazyStartProducer(boolean lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option is a: <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
lazyStartProducer
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder lazyStartProducer(String lazyStartProducer) Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. The option will be converted to a <code>boolean</code> type. Default: false Group: producer (advanced)- Parameters:
lazyStartProducer
- the value to set- Returns:
- the dsl builder
-
errorHandler
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder errorHandler(org.apache.camel.support.processor.validation.ValidatorErrorHandler errorHandler) To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler. The default error handler captures the errors and throws an exception. The option is a: <code>org.apache.camel.support.processor.validation.ValidatorErrorHandler</code> type. Group: advanced- Parameters:
errorHandler
- the value to set- Returns:
- the dsl builder
-
errorHandler
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder errorHandler(String errorHandler) To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler. The default error handler captures the errors and throws an exception. The option will be converted to a <code>org.apache.camel.support.processor.validation.ValidatorErrorHandler</code> type. Group: advanced- Parameters:
errorHandler
- the value to set- Returns:
- the dsl builder
-
resourceResolver
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder resourceResolver(LSResourceResolver resourceResolver) To use a custom LSResourceResolver. Do not use together with resourceResolverFactory. The option is a: <code>org.w3c.dom.ls.LSResourceResolver</code> type. Group: advanced- Parameters:
resourceResolver
- the value to set- Returns:
- the dsl builder
-
resourceResolver
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder resourceResolver(String resourceResolver) To use a custom LSResourceResolver. Do not use together with resourceResolverFactory. The option will be converted to a <code>org.w3c.dom.ls.LSResourceResolver</code> type. Group: advanced- Parameters:
resourceResolver
- the value to set- Returns:
- the dsl builder
-
resourceResolverFactory
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder resourceResolverFactory(org.apache.camel.component.validator.ValidatorResourceResolverFactory resourceResolverFactory) To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI. The default resource resolver factory resturns a resource resolver which can read files from the class path and file system. Do not use together with resourceResolver. The option is a: <code>org.apache.camel.component.validator.ValidatorResourceResolverFactory</code> type. Group: advanced- Parameters:
resourceResolverFactory
- the value to set- Returns:
- the dsl builder
-
resourceResolverFactory
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder resourceResolverFactory(String resourceResolverFactory) To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI. The default resource resolver factory resturns a resource resolver which can read files from the class path and file system. Do not use together with resourceResolver. The option will be converted to a <code>org.apache.camel.component.validator.ValidatorResourceResolverFactory</code> type. Group: advanced- Parameters:
resourceResolverFactory
- the value to set- Returns:
- the dsl builder
-
schemaFactory
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder schemaFactory(SchemaFactory schemaFactory) To use a custom javax.xml.validation.SchemaFactory. The option is a: <code>javax.xml.validation.SchemaFactory</code> type. Group: advanced- Parameters:
schemaFactory
- the value to set- Returns:
- the dsl builder
-
schemaFactory
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder schemaFactory(String schemaFactory) To use a custom javax.xml.validation.SchemaFactory. The option will be converted to a <code>javax.xml.validation.SchemaFactory</code> type. Group: advanced- Parameters:
schemaFactory
- the value to set- Returns:
- the dsl builder
-
schemaLanguage
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder schemaLanguage(String schemaLanguage) Configures the W3C XML Schema Namespace URI. The option is a: <code>java.lang.String</code> type. Default: http://www.w3.org/2001/XMLSchema Group: advanced- Parameters:
schemaLanguage
- the value to set- Returns:
- the dsl builder
-