Interface CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver
- All Known Subinterfaces:
CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointBuilder
- Enclosing interface:
CxfRsEndpointBuilderFactory
public static interface CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
Advanced builder for endpoint consumers for the CXF-RS component.
-
Method Summary
Modifier and TypeMethodDescriptionbasic()To use a custom CxfBinding to control the binding between Camel Message and CXF Message.binding(org.apache.camel.component.cxf.jaxrs.CxfRsBinding binding) To use a custom CxfBinding to control the binding between Camel Message and CXF Message.bridgeErrorHandler(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.bridgeErrorHandler(String bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler.To use a custom configured CXF Bus.bus(org.apache.cxf.Bus bus) To use a custom configured CXF Bus.continuationTimeout(long continuationTimeout) This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the CXF server is using Jetty or Servlet transport.continuationTimeout(String continuationTimeout) This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the CXF server is using Jetty or Servlet transport.cxfRsConfigurer(String cxfRsConfigurer) This option could apply the implementation of org.apache.camel.component.cxf.jaxrs.CxfRsEndpointConfigurer which supports to configure the CXF endpoint in programmatic way.cxfRsConfigurer(org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer cxfRsConfigurer) This option could apply the implementation of org.apache.camel.component.cxf.jaxrs.CxfRsEndpointConfigurer which supports to configure the CXF endpoint in programmatic way.defaultBus(boolean defaultBus) Will set the default bus when CXF endpoint create a bus by itself.defaultBus(String defaultBus) Will set the default bus when CXF endpoint create a bus by itself.exceptionHandler(String exceptionHandler) To let the consumer use a custom ExceptionHandler.exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler.exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange.exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange.headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message.performInvocation(boolean performInvocation) When the option is true, Camel will perform the invocation of the resource class instance and put the response object into the exchange for further processing.performInvocation(String performInvocation) When the option is true, Camel will perform the invocation of the resource class instance and put the response object into the exchange for further processing.propagateContexts(boolean propagateContexts) When the option is true, JAXRS UriInfo, HttpHeaders, Request and SecurityContext contexts will be available to custom CXFRS processors as typed Camel exchange properties.propagateContexts(String propagateContexts) When the option is true, JAXRS UriInfo, HttpHeaders, Request and SecurityContext contexts will be available to custom CXFRS processors as typed Camel exchange properties.serviceBeans(String serviceBeans) The service beans (the bean ids to lookup in the registry) which you want to export as REST service.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolve
-
Method Details
-
basic
-
bridgeErrorHandler
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
bridgeErrorHandler
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler) Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. Important: This is only possible if the 3rd party component allows Camel to be alerted if an exception was thrown. Some components handle this internally only, and therefore bridgeErrorHandler is not possible. In other situations we may improve the Camel component to hook into the 3rd party component and make this possible for future releases. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>boolean</code> type. Default: false Group: consumer (advanced)- Parameters:
bridgeErrorHandler- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option is a: <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler- the value to set- Returns:
- the dsl builder
-
exceptionHandler
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder exceptionHandler(String exceptionHandler) To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. The option will be converted to a <code>org.apache.camel.spi.ExceptionHandler</code> type. Group: consumer (advanced)- Parameters:
exceptionHandler- the value to set- Returns:
- the dsl builder
-
exchangePattern
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern- the value to set- Returns:
- the dsl builder
-
exchangePattern
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder exchangePattern(String exchangePattern) Sets the exchange pattern when the consumer creates an exchange. The option will be converted to a <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)- Parameters:
exchangePattern- the value to set- Returns:
- the dsl builder
-
serviceBeans
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder serviceBeans(String serviceBeans) The service beans (the bean ids to lookup in the registry) which you want to export as REST service. Multiple beans can be separated by comma. The option is a: <code>java.lang.String</code> type. Group: consumer (advanced)- Parameters:
serviceBeans- the value to set- Returns:
- the dsl builder
-
binding
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder binding(org.apache.camel.component.cxf.jaxrs.CxfRsBinding binding) To use a custom CxfBinding to control the binding between Camel Message and CXF Message. The option is a: <code>org.apache.camel.component.cxf.jaxrs.CxfRsBinding</code> type. Group: advanced- Parameters:
binding- the value to set- Returns:
- the dsl builder
-
binding
To use a custom CxfBinding to control the binding between Camel Message and CXF Message. The option will be converted to a <code>org.apache.camel.component.cxf.jaxrs.CxfRsBinding</code> type. Group: advanced- Parameters:
binding- the value to set- Returns:
- the dsl builder
-
bus
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder bus(org.apache.cxf.Bus bus) To use a custom configured CXF Bus. The option is a: <code>org.apache.cxf.Bus</code> type. Group: advanced- Parameters:
bus- the value to set- Returns:
- the dsl builder
-
bus
To use a custom configured CXF Bus. The option will be converted to a <code>org.apache.cxf.Bus</code> type. Group: advanced- Parameters:
bus- the value to set- Returns:
- the dsl builder
-
continuationTimeout
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder continuationTimeout(long continuationTimeout) This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the CXF server is using Jetty or Servlet transport. The option is a: <code>long</code> type. Default: 30000 Group: advanced- Parameters:
continuationTimeout- the value to set- Returns:
- the dsl builder
-
continuationTimeout
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder continuationTimeout(String continuationTimeout) This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the CXF server is using Jetty or Servlet transport. The option will be converted to a <code>long</code> type. Default: 30000 Group: advanced- Parameters:
continuationTimeout- the value to set- Returns:
- the dsl builder
-
cxfRsConfigurer
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder cxfRsConfigurer(org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer cxfRsConfigurer) This option could apply the implementation of org.apache.camel.component.cxf.jaxrs.CxfRsEndpointConfigurer which supports to configure the CXF endpoint in programmatic way. User can configure the CXF server and client by implementing configure{Server/Client} method of CxfEndpointConfigurer. The option is a: <code>org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer</code> type. Group: advanced- Parameters:
cxfRsConfigurer- the value to set- Returns:
- the dsl builder
-
cxfRsConfigurer
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder cxfRsConfigurer(String cxfRsConfigurer) This option could apply the implementation of org.apache.camel.component.cxf.jaxrs.CxfRsEndpointConfigurer which supports to configure the CXF endpoint in programmatic way. User can configure the CXF server and client by implementing configure{Server/Client} method of CxfEndpointConfigurer. The option will be converted to a <code>org.apache.camel.component.cxf.jaxrs.CxfRsConfigurer</code> type. Group: advanced- Parameters:
cxfRsConfigurer- the value to set- Returns:
- the dsl builder
-
defaultBus
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder defaultBus(boolean defaultBus) Will set the default bus when CXF endpoint create a bus by itself. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
defaultBus- the value to set- Returns:
- the dsl builder
-
defaultBus
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder defaultBus(String defaultBus) Will set the default bus when CXF endpoint create a bus by itself. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
defaultBus- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder headerFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option is a: <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
headerFilterStrategy
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder headerFilterStrategy(String headerFilterStrategy) To use a custom HeaderFilterStrategy to filter header to and from Camel message. The option will be converted to a <code>org.apache.camel.spi.HeaderFilterStrategy</code> type. Group: advanced- Parameters:
headerFilterStrategy- the value to set- Returns:
- the dsl builder
-
performInvocation
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder performInvocation(boolean performInvocation) When the option is true, Camel will perform the invocation of the resource class instance and put the response object into the exchange for further processing. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
performInvocation- the value to set- Returns:
- the dsl builder
-
performInvocation
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder performInvocation(String performInvocation) When the option is true, Camel will perform the invocation of the resource class instance and put the response object into the exchange for further processing. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
performInvocation- the value to set- Returns:
- the dsl builder
-
propagateContexts
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder propagateContexts(boolean propagateContexts) When the option is true, JAXRS UriInfo, HttpHeaders, Request and SecurityContext contexts will be available to custom CXFRS processors as typed Camel exchange properties. These contexts can be used to analyze the current requests using JAX-RS API. The option is a: <code>boolean</code> type. Default: false Group: advanced- Parameters:
propagateContexts- the value to set- Returns:
- the dsl builder
-
propagateContexts
default CxfRsEndpointBuilderFactory.AdvancedCxfRsEndpointConsumerBuilder propagateContexts(String propagateContexts) When the option is true, JAXRS UriInfo, HttpHeaders, Request and SecurityContext contexts will be available to custom CXFRS processors as typed Camel exchange properties. These contexts can be used to analyze the current requests using JAX-RS API. The option will be converted to a <code>boolean</code> type. Default: false Group: advanced- Parameters:
propagateContexts- the value to set- Returns:
- the dsl builder
-