Class GoogleMailEndpoint

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultEndpoint
org.apache.camel.support.ScheduledPollEndpoint
org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
org.apache.camel.component.google.mail.GoogleMailEndpoint
All Implemented Interfaces:
AutoCloseable, org.apache.camel.ApiEndpoint, org.apache.camel.CamelContextAware, org.apache.camel.ComponentAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.EndpointServiceLocation, org.apache.camel.spi.HasCamelContext, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.support.component.PropertiesInterceptor, org.apache.camel.support.component.PropertyNamesInterceptor, org.apache.camel.SuspendableService

@UriEndpoint(firstVersion="2.15.0", scheme="google-mail", title="Google Mail", syntax="google-mail:apiName/methodName", apiSyntax="apiName/methodName", consumerPrefix="consumer", category={CLOUD,API,MAIL}) public class GoogleMailEndpoint extends org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration> implements org.apache.camel.spi.EndpointServiceLocation
Manage messages in Google Mail.
  • Field Summary

    Fields inherited from class org.apache.camel.support.component.AbstractApiEndpoint

    apiName, inBody, log, methodHelper, methodName

    Fields inherited from class org.apache.camel.support.service.BaseService

    BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING
  • Constructor Summary

    Constructors
    Constructor
    Description
    GoogleMailEndpoint(String uri, GoogleMailComponent component, GoogleMailApiName apiName, String methodName, GoogleMailConfiguration endpointConfiguration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    org.apache.camel.Consumer
    createConsumer(org.apache.camel.Processor processor)
     
    org.apache.camel.Producer
     
    getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String,Object> args)
     
    com.google.api.services.gmail.Gmail
     
     
    protected org.apache.camel.support.component.ApiMethodPropertiesHelper<GoogleMailConfiguration>
     
     
     
     
    protected String
     
    void
     

    Methods inherited from class org.apache.camel.support.component.AbstractApiEndpoint

    configureConsumer, configureProperties, getApiName, getCandidates, getConfiguration, getConfigurationProperties, getConfigurationPropertyNames, getEndpointProperties, getEndpointPropertyNames, getExecutorService, getInBody, getMethodHelper, getMethodName, interceptProperties, interceptPropertyNames, setInBody

    Methods inherited from class org.apache.camel.support.ScheduledPollEndpoint

    configureScheduledPollConsumerProperties, doConfigureConsumer, 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, setUseFixedDelay

    Methods inherited from class org.apache.camel.support.DefaultEndpoint

    configureExchange, configurePollingConsumer, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.camel.ComponentAware

    getComponent, getComponent, setComponent

    Methods inherited from interface org.apache.camel.Endpoint

    configureExchange, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, getExchangePattern, isLenientProperties, isRemote, isSingletonProducer, setCamelContext

    Methods inherited from interface org.apache.camel.IsSingleton

    isSingleton

    Methods inherited from interface org.apache.camel.Service

    build, close, init, start, stop

    Methods inherited from interface org.apache.camel.ShutdownableService

    shutdown

    Methods inherited from interface org.apache.camel.StatefulService

    getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending

    Methods inherited from interface org.apache.camel.SuspendableService

    isSuspended, resume, suspend
  • Constructor Details

  • Method Details

    • createProducer

      public org.apache.camel.Producer createProducer() throws Exception
      Specified by:
      createProducer in interface org.apache.camel.Endpoint
      Throws:
      Exception
    • createConsumer

      public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
      Specified by:
      createConsumer in interface org.apache.camel.Endpoint
      Throws:
      Exception
    • getPropertiesHelper

      protected org.apache.camel.support.component.ApiMethodPropertiesHelper<GoogleMailConfiguration> getPropertiesHelper()
      Specified by:
      getPropertiesHelper in class org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
    • getThreadProfileName

      protected String getThreadProfileName()
      Specified by:
      getThreadProfileName in class org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
    • afterConfigureProperties

      protected void afterConfigureProperties()
      Specified by:
      afterConfigureProperties in class org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
    • getClient

      public com.google.api.services.gmail.Gmail getClient()
    • getApiProxy

      public Object getApiProxy(org.apache.camel.support.component.ApiMethod method, Map<String,Object> args)
      Specified by:
      getApiProxy in class org.apache.camel.support.component.AbstractApiEndpoint<GoogleMailApiName,GoogleMailConfiguration>
    • getClientFactory

      public GoogleMailClientFactory getClientFactory()
    • setClientFactory

      public void setClientFactory(GoogleMailClientFactory clientFactory)
    • getServiceUrl

      public String getServiceUrl()
      Specified by:
      getServiceUrl in interface org.apache.camel.spi.EndpointServiceLocation
    • getServiceProtocol

      public String getServiceProtocol()
      Specified by:
      getServiceProtocol in interface org.apache.camel.spi.EndpointServiceLocation
    • getServiceMetadata

      public Map<String,String> getServiceMetadata()
      Specified by:
      getServiceMetadata in interface org.apache.camel.spi.EndpointServiceLocation