/** * Configures a {@link ProducerTemplate} * * @version */ @Metadata(label = "spring,configuration") @XmlRootElement(name = "template") @XmlAccessorType(XmlAccessType.FIELD) public class CamelProducerTemplateFactoryBean extends AbstractCamelProducerTemplateFactoryBean implements FactoryBean<ProducerTemplate>, InitializingBean, DisposableBean, ApplicationContextAware { @XmlTransient private ApplicationContext applicationContext; @Override protected CamelContext getCamelContextWithId(String camelContextId) { return CamelContextResolverHelper.getCamelContextWithId(applicationContext, camelContextId); } public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; } }
@Metadata(label = "spring,configuration,rest") @XmlRootElement(name = "restContext") @XmlAccessorType(XmlAccessType.FIELD) public class CamelRestContextFactoryBean extends IdentifiedType implements FactoryBean<List<RestDefinition>> {
@UriEndpoint(scheme = "canova", title = "canova", syntax="canova:inputFormat/?outputFormat=?&inputMarshaller=?", consumerClass = CanovaConsumer.class,label = "canova") @Data public class CanovaEndpoint extends DefaultEndpoint { @UriPath @Metadata(required = "true") private String inputFormat; @UriParam(defaultValue = "") private String outputFormat; @UriParam @Metadata(required = "true") private String inputMarshaller; @UriParam(defaultValue = "org.canova.api.io.converters.SelfWritableConverter") private String writableConverter;
/** * The Twitter Direct Message Component consumes/produces user's direct messages. */ @UriEndpoint(firstVersion = "2.10.0", scheme = "twitter-directmessage", title = "Twitter Direct Message", syntax = "twitter-directmessage:user", consumerClass = DirectMessageConsumerHandler.class, label = "api,social") public class TwitterDirectMessageEndpoint extends AbstractTwitterEndpoint { @UriPath(description = "The user name to send a direct message. This will be ignored for consumer.") @Metadata(required = "true") private String user; public TwitterDirectMessageEndpoint(String uri, String remaining, TwitterDirectMessageComponent component, TwitterConfiguration properties) { super(uri, component, properties); this.user = remaining; } @Override public Producer createProducer() throws Exception { return new DirectMessageProducer(this, user); } @Override public Consumer createConsumer(Processor processor) throws Exception { Consumer answer = TwitterHelper.createConsumer(processor, this, new DirectMessageConsumerHandler(this)); return answer; } }
@UriPath(name = "server", description = "Specifies the server this endpoint receives an SAP request from") @Metadata(required = "true") protected String serverName; @UriPath(name = "rfc", description = "Specifies the Remote Function Module this endpoint handles an SAP request for") @Metadata(required = "true") protected String rfcName; @UriParam(name = "stateful", description = "When true, specifies that this endpoint will initiate an SAP stateful session", defaultValue = "false") protected boolean stateful;
/** * Sets the cache level by name for the underlying JMS resources. * Possible values are: CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, and CACHE_SESSION. * The default setting is CACHE_AUTO. See the Spring documentation and Transactions Cache Levels for more information. */ @Metadata(defaultValue = "CACHE_AUTO", label = "consumer", enums = "CACHE_AUTO,CACHE_CONNECTION,CACHE_CONSUMER,CACHE_NONE,CACHE_SESSION", description = "Sets the cache level by name for the underlying JMS resources." + " Possible values are: CACHE_AUTO, CACHE_CONNECTION, CACHE_CONSUMER, CACHE_NONE, and CACHE_SESSION." + " The default setting is CACHE_AUTO. See the Spring documentation and Transactions Cache Levels for more information.") public void setCacheLevelName(String cacheName) { getConfiguration().setCacheLevelName(cacheName); }
@Metadata(label = "spring,configuration,routing") @XmlRootElement(name = "routeContext") @XmlAccessorType(XmlAccessType.FIELD) public class CamelRouteContextFactoryBean extends IdentifiedType implements FactoryBean<List<RouteDefinition>> {
@UriEndpoint(firstVersion = "2.18.0", scheme = "etcd", title = "etcd", syntax = "etcd:namespace/path", consumerClass = AbstractEtcdConsumer.class, label = "clustering,database") public abstract class AbstractEtcdPollingEndpoint extends DefaultPollingEndpoint implements EtcdEndpoint { @UriPath(description = "The API namespace to use", enums = "keys,stats,watch") @Metadata(required = "true") private final EtcdNamespace namespace; @UriPath(description = "The path the endpoint refers to") @Metadata(required = "false") private final String path; @UriParam private final EtcdConfiguration configuration;
@UriEndpoint(scheme="sap-qrfc-destination", syntax = "sap-qrfc-destination:destination:queue:rfc", producerOnly = true, title="SAP Queued RFC Destination") public class SapQueuedRfcDestinationEndpoint extends SapRfcDestinationEndpoint { @UriPath(name = "queue", description = "Specifies the queue this endpoint sends an SAP request to") @Metadata(required = "true") protected String queueName;
@UriPath(name = "destination", description = "Specifies the destination this endpoint sends an SAP request to") @Metadata(required = "true") protected String destinationName; @UriPath(name = "rfc", description = "Specifies the Remote Function Module this endpoint sends an SAP request to") @Metadata(required = "true") protected String rfcName; @UriParam(name = "transacted", description = "When true, specifies that this endpoint will initiate an SAP transaction", defaultValue = "false") protected boolean transacted; @UriParam(name = "stateful", description = "When true, specifies that this endpoint will initiate an SAP stateful session", defaultValue = "false") protected boolean stateful;
/** * Specifies the default number of concurrent consumers when doing request/reply over JMS. * See also the maxMessagesPerTask option to control dynamic scaling up/down of threads. */ @Metadata(defaultValue = "1", label = "producer", description = "Specifies the default number of concurrent consumers when doing request/reply over JMS." + " See also the maxMessagesPerTask option to control dynamic scaling up/down of threads.") public void setReplyToConcurrentConsumers(int concurrentConsumers) { getConfiguration().setReplyToConcurrentConsumers(concurrentConsumers); }
/** * Configures a {@link org.apache.camel.FluentProducerTemplate} * * @version */ @Metadata(label = "spring,configuration") @XmlRootElement(name = "fluentTemplate") @XmlAccessorType(XmlAccessType.FIELD) public class CamelFluentProducerTemplateFactoryBean extends AbstractCamelFluentProducerTemplateFactoryBean implements FactoryBean<FluentProducerTemplate>, InitializingBean, DisposableBean, ApplicationContextAware { @XmlTransient private ApplicationContext applicationContext; @Override protected CamelContext getCamelContextWithId(String camelContextId) { return CamelContextResolverHelper.getCamelContextWithId(applicationContext, camelContextId); } public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { this.applicationContext = applicationContext; } }
@Metadata(label = "ipf,eip,flow") @XmlRootElement(name = "ackFlow") @XmlAccessorType(XmlAccessType.FIELD) public class FlowEndProcessorDefinition extends FlowProcessorDefinition {
@UriEndpoint(firstVersion = "2.13.0", scheme = "infinispan", title = "Infinispan", syntax = "infinispan:cacheName", consumerClass = InfinispanConsumer.class, label = "cache,datagrid,clustering") public class InfinispanEndpoint extends DefaultEndpoint { @UriPath(description = "The cache to use") @Metadata(required = "true") private final String cacheName; @UriParam private final InfinispanConfiguration configuration;
@UriEndpoint(firstVersion = "2.10.0", scheme = "twitter-search", title = "Twitter Search", syntax = "twitter-search:keywords", consumerClass = SearchConsumerHandler.class, label = "api,social") public class TwitterSearchEndpoint extends AbstractTwitterEndpoint { @UriPath(description = "The search keywords. Multiple values can be separated with comma.") @Metadata(required = "true") private String keywords;
@UriParams public class GoogleBigQueryConfiguration { @UriParam(description = "ConnectionFactory to obtain connection to Bigquery Service. If non provided the default one will be used") private GoogleBigQueryConnectionFactory connectionFactory; @UriParam(description = "Field name to use as insert id") private String useAsInsertId; @UriPath(label = "common", description = "Google Cloud Project Id") @Metadata(required = "true") private String projectId; @UriPath(label = "common", description = "BigQuery Dataset Id") @Metadata(required = "true") private String datasetId; @UriPath(label = "common", description = "BigQuery table id") @Metadata(required = "false") private String tableId;
/** * To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control * how to map to/from a javax.jms.Message. */ @Metadata(label = "advanced", description = "To use a custom Spring org.springframework.jms.support.converter.MessageConverter so you can be in control how to map to/from a javax.jms.Message.") public void setMessageConverter(MessageConverter messageConverter) { getConfiguration().setMessageConverter(messageConverter); }
/** * Configuration of redelivery policy. * * @version */ @Metadata(label = "spring,configuration") @XmlRootElement(name = "redeliveryPolicyProfile") @XmlAccessorType(XmlAccessType.FIELD) public class CamelRedeliveryPolicyFactoryBean extends AbstractCamelRedeliveryPolicyFactoryBean implements FactoryBean<RedeliveryPolicy>, ApplicationContextAware { @XmlTransient private ApplicationContext applicationContext; @Override protected CamelContext getCamelContextWithId(String camelContextId) { return CamelContextResolverHelper.getCamelContextWithId(applicationContext, camelContextId); } public void setApplicationContext(ApplicationContext applicationContext) { this.applicationContext = applicationContext; } }
@Metadata(label = "ipf,eip,flow") @XmlRootElement(name = "nakFlow") @XmlAccessorType(XmlAccessType.FIELD) public class FlowErrorProcessorDefinition extends FlowProcessorDefinition {