/** * 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,error") @XmlRootElement(name = "errorHandler") @XmlAccessorType(XmlAccessType.FIELD) public class ErrorHandlerDefinition extends IdentifiedType { @XmlAttribute @Metadata(defaultValue = "DefaultErrorHandler", required = "true") private ErrorHandlerType type = ErrorHandlerType.DefaultErrorHandler; @XmlAttribute private String deadLetterUri; @XmlAttribute private String deadLetterHandleNewException; @XmlAttribute @Metadata(defaultValue = "ERROR") private LoggingLevel level; @XmlAttribute @Metadata(defaultValue = "WARN") private LoggingLevel rollbackLoggingLevel; @XmlAttribute
/** * 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; } }
@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;
/** * 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 = "spring,configuration") @XmlRootElement(name = "camelContext") @XmlAccessorType(XmlAccessType.FIELD) public class CamelContextFactoryBean extends AbstractCamelContextFactoryBean<SpringCamelContext> implements FactoryBean<SpringCamelContext>, InitializingBean, DisposableBean, ApplicationContextAware, Lifecycle, @XmlAttribute(name = "depends-on") private String dependsOn; @XmlAttribute private String trace; @XmlAttribute @Metadata(defaultValue = "true") private String messageHistory; @XmlAttribute @Metadata(defaultValue = "false") @XmlAttribute @Metadata(defaultValue = "true") private String autoStartup; @XmlAttribute @Metadata(defaultValue = "true") private String shutdownEager; @XmlAttribute @Metadata(defaultValue = "false") @Deprecated private String registerEndpointIdsFromRoute; @XmlAttribute @Metadata(defaultValue = "true") @XmlAttribute @Metadata(defaultValue = "#name#") private String managementNamePattern; @XmlAttribute @Metadata(defaultValue = "Camel (#camelId#) thread ##counter# - #name#") private String threadNamePattern; @XmlAttribute @Metadata(defaultValue = "Default")
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;
/** * 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 = "initFlow") @XmlAccessorType(XmlAccessType.FIELD) public class FlowBeginProcessorDefinition extends FlowProcessorDefinition { @XmlAttribute private final String identifier; @XmlAttribute private String application; @XmlAttribute private String replayErrorUri; @XmlAttribute
@UriParams public class WordpressComponentConfiguration { @UriParam(description = "The Wordpress API URL from your site, e.g. http://myblog.com/wp-json/") @Metadata(required = "true") private String url; @UriParam(description = "The Wordpress REST API version", defaultValue = WordpressConstants.API_VERSION) private String apiVersion = WordpressConstants.API_VERSION; @UriParam(description = "Authorized user to perform writing operations") private String user; @UriParam(description = "Password from authorized user")
/** * Configuration of thread pools * * @version */ @Metadata(label = "spring,configuration") @XmlRootElement(name = "threadPool") @XmlAccessorType(XmlAccessType.FIELD) public class CamelThreadPoolFactoryBean extends AbstractCamelThreadPoolFactoryBean implements FactoryBean<ExecutorService>, ApplicationContextAware { @XmlTransient private ApplicationContext applicationContext; @Override protected CamelContext getCamelContextWithId(String camelContextId) { return CamelContextResolverHelper.getCamelContextWithId(applicationContext, camelContextId); } public void setApplicationContext(ApplicationContext applicationContext) { this.applicationContext = applicationContext; } }
@Data public class DataVecEndpoint extends DefaultEndpoint { @UriPath @Metadata(required = "true") private String inputFormat; @UriParam(defaultValue = "") private String outputFormat; @UriParam @Metadata(required = "true") private String inputMarshaller; @UriParam(defaultValue = "org.datavec.api.io.converters.SelfWritableConverter") private String writableConverter;
/** * Configures a {@link ConsumerTemplate} * * @version */ @Metadata(label = "spring,configuration") @XmlRootElement(name = "consumerTemplate") @XmlAccessorType(XmlAccessType.FIELD) public class CamelConsumerTemplateFactoryBean extends AbstractCamelConsumerTemplateFactoryBean implements FactoryBean<ConsumerTemplate>, 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; } }
@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;