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
All Methods Instance Methods Default Methods Modifier and Type Method Description default ValidatorEndpointBuilderFactory.ValidatorEndpointBuilder
basic()
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
errorHandler(String errorHandler)
To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
errorHandler(org.apache.camel.support.processor.validation.ValidatorErrorHandler errorHandler)
To use a custom org.apache.camel.processor.validation.ValidatorErrorHandler.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
lazyStartProducer(boolean lazyStartProducer)
Whether the producer should be started lazy (on the first message).default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
lazyStartProducer(String lazyStartProducer)
Whether the producer should be started lazy (on the first message).default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
resourceResolver(String resourceResolver)
To use a custom LSResourceResolver.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
resourceResolver(LSResourceResolver resourceResolver)
To use a custom LSResourceResolver.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
resourceResolverFactory(String resourceResolverFactory)
To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
resourceResolverFactory(org.apache.camel.component.validator.ValidatorResourceResolverFactory resourceResolverFactory)
To use a custom LSResourceResolver which depends on a dynamic endpoint resource URI.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
schemaFactory(String schemaFactory)
To use a custom javax.xml.validation.SchemaFactory.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
schemaFactory(SchemaFactory schemaFactory)
To use a custom javax.xml.validation.SchemaFactory.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
schemaLanguage(String schemaLanguage)
Configures the W3C XML Schema Namespace URI.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
useSharedSchema(boolean useSharedSchema)
Whether the Schema instance should be shared or not.default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder
useSharedSchema(String useSharedSchema)
Whether the Schema instance should be shared or not.
-
-
-
Method Detail
-
basic
default ValidatorEndpointBuilderFactory.ValidatorEndpointBuilder 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
-
useSharedSchema
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder useSharedSchema(boolean useSharedSchema)
Whether the Schema instance should be shared or not. This option is introduced to work around a JDK 1.6.x bug. Xerces should not have this issue. The option is a: <code>boolean</code> type. Default: true Group: advanced- Parameters:
useSharedSchema
- the value to set- Returns:
- the dsl builder
-
useSharedSchema
default ValidatorEndpointBuilderFactory.AdvancedValidatorEndpointBuilder useSharedSchema(String useSharedSchema)
Whether the Schema instance should be shared or not. This option is introduced to work around a JDK 1.6.x bug. Xerces should not have this issue. The option will be converted to a <code>boolean</code> type. Default: true Group: advanced- Parameters:
useSharedSchema
- the value to set- Returns:
- the dsl builder
-
-