@UriEndpoint(firstVersion="2.20.0",
scheme="twilio",
title="Twilio",
syntax="twilio:apiName/methodName",
apiSyntax="apiName/methodName",
category={API,MESSAGING,CLOUD})
public class TwilioEndpoint
extends org.apache.camel.support.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>
| Modifier and Type | Field and Description |
|---|---|
protected TwilioComponent |
component |
protected static Map<String,String> |
EXECUTOR_METHOD_MAP |
| Constructor and Description |
|---|
TwilioEndpoint(String uri,
TwilioComponent component,
TwilioApiName apiName,
String methodName,
TwilioConfiguration endpointConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterConfigureProperties() |
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
protected Object |
doExecute(Object executor,
String methodName,
Map<String,Object> properties) |
Object |
execute(Object executor,
org.apache.camel.support.component.ApiMethod method,
Map<String,Object> properties) |
Object |
getApiProxy(org.apache.camel.support.component.ApiMethod method,
Map<String,Object> args) |
protected org.apache.camel.support.component.ApiMethodPropertiesHelper<TwilioConfiguration> |
getPropertiesHelper() |
com.twilio.http.TwilioRestClient |
getRestClient() |
protected String |
getThreadProfileName() |
configureConsumer, configureProperties, getApiName, getCandidates, getConfiguration, getEndpointProperties, getEndpointPropertyNames, getExecutorService, getInBody, getMethodHelper, getMethodName, interceptProperties, interceptPropertyNames, setInBodyconfigureScheduledPollConsumerProperties, doConfigureConsumer, doStart, doStop, getBackoffErrorThreshold, getBackoffIdleThreshold, getBackoffMultiplier, getDefaultDelay, getDelay, getInitialDelay, getPollStrategy, getRepeatCount, getRunLoggingLevel, getScheduledExecutorService, getScheduler, getSchedulerProperties, getTimeUnit, isGreedy, isSendEmptyMessageWhenIdle, isStartScheduler, isUseFixedDelay, setBackoffErrorThreshold, setBackoffIdleThreshold, setBackoffMultiplier, setDelay, setGreedy, setInitialDelay, setPollStrategy, setRepeatCount, setRunLoggingLevel, setScheduledExecutorService, setScheduler, setSchedulerProperties, setSendEmptyMessageWhenIdle, setStartScheduler, setTimeUnit, setUseFixedDelayconfigurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isSingleton, isSynchronous, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer, setCamelContextprotected final TwilioComponent component
public TwilioEndpoint(String uri, TwilioComponent component, TwilioApiName apiName, String methodName, TwilioConfiguration endpointConfiguration)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionprotected void afterConfigureProperties()
afterConfigureProperties in class org.apache.camel.support.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>public Object getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String,Object> args)
getApiProxy in class org.apache.camel.support.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>public Object execute(Object executor, org.apache.camel.support.component.ApiMethod method, Map<String,Object> properties)
protected Object doExecute(Object executor, String methodName, Map<String,Object> properties) throws Exception
Exceptionprotected org.apache.camel.support.component.ApiMethodPropertiesHelper<TwilioConfiguration> getPropertiesHelper()
getPropertiesHelper in class org.apache.camel.support.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>protected String getThreadProfileName()
getThreadProfileName in class org.apache.camel.support.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>public com.twilio.http.TwilioRestClient getRestClient()
Apache Camel