@Component(value="twilio") public class TwilioComponent extends org.apache.camel.support.component.AbstractApiComponent<TwilioApiName,TwilioConfiguration,TwilioApiCollection>
| Constructor and Description |
|---|
TwilioComponent() |
TwilioComponent(org.apache.camel.CamelContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String methodName,
TwilioApiName apiName,
TwilioConfiguration endpointConfiguration) |
void |
doShutdown() |
protected void |
doStart() |
String |
getAccountSid() |
protected TwilioApiName |
getApiName(String apiNameStr) |
TwilioConfiguration |
getConfiguration() |
String |
getPassword() |
com.twilio.http.TwilioRestClient |
getRestClient() |
String |
getUsername() |
void |
setAccountSid(String accountSid)
The account SID to use.
|
void |
setConfiguration(TwilioConfiguration configuration)
To use the shared configuration
|
void |
setPassword(String password)
Auth token for the account.
|
void |
setRestClient(com.twilio.http.TwilioRestClient restClient)
To use the shared REST client
|
void |
setUsername(String username)
The account to use.
|
createEndpoint, createEndpointConfigurationafterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURIbuild, doFail, doLifecycleChange, doResume, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic TwilioComponent()
public TwilioComponent(org.apache.camel.CamelContext context)
protected TwilioApiName getApiName(String apiNameStr)
getApiName in class org.apache.camel.support.component.AbstractApiComponent<TwilioApiName,TwilioConfiguration,TwilioApiCollection>protected org.apache.camel.Endpoint createEndpoint(String uri, String methodName, TwilioApiName apiName, TwilioConfiguration endpointConfiguration)
createEndpoint in class org.apache.camel.support.component.AbstractApiComponent<TwilioApiName,TwilioConfiguration,TwilioApiCollection>protected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultComponentExceptionpublic void doShutdown()
throws Exception
doShutdown in class org.apache.camel.support.service.BaseServiceExceptionpublic TwilioConfiguration getConfiguration()
getConfiguration in class org.apache.camel.support.component.AbstractApiComponent<TwilioApiName,TwilioConfiguration,TwilioApiCollection>public void setConfiguration(TwilioConfiguration configuration)
setConfiguration in class org.apache.camel.support.component.AbstractApiComponent<TwilioApiName,TwilioConfiguration,TwilioApiCollection>public com.twilio.http.TwilioRestClient getRestClient()
public void setRestClient(com.twilio.http.TwilioRestClient restClient)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getAccountSid()
public void setAccountSid(String accountSid)
Apache Camel