@UriEndpoint(firstVersion="2.20.0", scheme="twilio", title="Twilio", syntax="twilio:apiName/methodName", consumerClass=TwilioConsumer.class, label="api,messaging,cloud") public class TwilioEndpoint extends org.apache.camel.util.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.util.component.ApiMethod method,
Map<String,Object> properties) |
Object |
getApiProxy(org.apache.camel.util.component.ApiMethod method,
Map<String,Object> args) |
protected org.apache.camel.util.component.ApiMethodPropertiesHelper<TwilioConfiguration> |
getPropertiesHelper() |
com.twilio.http.TwilioRestClient |
getRestClient() |
protected String |
getThreadProfileName() |
configureProperties, getApiName, getCandidates, getConfiguration, getEndpointProperties, getEndpointPropertyNames, getExecutorService, getInBody, getMethodHelper, getMethodName, interceptProperties, interceptPropertyNames, isSingleton, setInBody
configureConsumer, configurePollingConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
protected 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
Exception
protected void afterConfigureProperties()
afterConfigureProperties
in class org.apache.camel.util.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>
public Object getApiProxy(org.apache.camel.util.component.ApiMethod method, Map<String,Object> args)
getApiProxy
in class org.apache.camel.util.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>
public Object execute(Object executor, org.apache.camel.util.component.ApiMethod method, Map<String,Object> properties)
protected Object doExecute(Object executor, String methodName, Map<String,Object> properties) throws Exception
Exception
protected org.apache.camel.util.component.ApiMethodPropertiesHelper<TwilioConfiguration> getPropertiesHelper()
getPropertiesHelper
in class org.apache.camel.util.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>
protected String getThreadProfileName()
getThreadProfileName
in class org.apache.camel.util.component.AbstractApiEndpoint<TwilioApiName,TwilioConfiguration>
public com.twilio.http.TwilioRestClient getRestClient()
Apache Camel