@UriEndpoint(scheme="google-mail", title="Google Mail", syntax="google-mail:apiName/methodName", consumerClass=GoogleMailConsumer.class, consumerPrefix="consumer", label="api,cloud,mail") public class GoogleMailEndpoint extends org.apache.camel.util.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
Constructor and Description |
---|
GoogleMailEndpoint(String uri,
GoogleMailComponent component,
GoogleMailApiName apiName,
String methodName,
GoogleMailConfiguration 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() |
Object |
getApiProxy(org.apache.camel.util.component.ApiMethod method,
Map<String,Object> args) |
com.google.api.services.gmail.Gmail |
getClient() |
GoogleMailClientFactory |
getClientFactory() |
protected org.apache.camel.util.component.ApiMethodPropertiesHelper<GoogleMailConfiguration> |
getPropertiesHelper() |
protected String |
getThreadProfileName() |
void |
setClientFactory(GoogleMailClientFactory clientFactory) |
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
public GoogleMailEndpoint(String uri, GoogleMailComponent component, GoogleMailApiName apiName, String methodName, GoogleMailConfiguration endpointConfiguration)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
protected org.apache.camel.util.component.ApiMethodPropertiesHelper<GoogleMailConfiguration> getPropertiesHelper()
getPropertiesHelper
in class org.apache.camel.util.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
protected String getThreadProfileName()
getThreadProfileName
in class org.apache.camel.util.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
protected void afterConfigureProperties()
afterConfigureProperties
in class org.apache.camel.util.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
public com.google.api.services.gmail.Gmail getClient()
public Object getApiProxy(org.apache.camel.util.component.ApiMethod method, Map<String,Object> args)
getApiProxy
in class org.apache.camel.util.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
public GoogleMailClientFactory getClientFactory()
public void setClientFactory(GoogleMailClientFactory clientFactory)
Apache Camel