Class GoogleMailStreamConfiguration

java.lang.Object
org.apache.camel.component.google.mail.stream.GoogleMailStreamConfiguration
All Implemented Interfaces:
Cloneable

@UriParams public class GoogleMailStreamConfiguration extends Object implements Cloneable
Component configuration for GoogleMail stream component.
  • Constructor Details

    • GoogleMailStreamConfiguration

      public GoogleMailStreamConfiguration()
  • Method Details

    • getClientId

      public String getClientId()
    • setClientId

      public void setClientId(String clientId)
      Client ID of the mail application
    • getClientSecret

      public String getClientSecret()
    • setClientSecret

      public void setClientSecret(String clientSecret)
      Client secret of the mail application
    • getAccessToken

      public String getAccessToken()
    • setAccessToken

      public void setAccessToken(String accessToken)
      OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage.
    • getRefreshToken

      public String getRefreshToken()
    • setRefreshToken

      public void setRefreshToken(String refreshToken)
      OAuth 2 refresh token. Using this, the Google Calendar component can obtain a new accessToken whenever the current one expires - a necessity if the application is long-lived.
    • isRaw

      public boolean isRaw()
    • setRaw

      public void setRaw(boolean raw)
      Whether to store the entire email message in an RFC 2822 formatted and base64url encoded string (in JSon format), in the Camel message body.
    • getApplicationName

      public String getApplicationName()
    • setApplicationName

      public void setApplicationName(String applicationName)
      Google mail application name. Example would be "camel-google-mail/1.0"
    • getIndex

      public String getIndex()
    • setIndex

      public void setIndex(String index)
      Currently not in use
    • getQuery

      public String getQuery()
    • setQuery

      public void setQuery(String query)
      The query to execute on gmail box
    • getMaxResults

      public long getMaxResults()
    • setMaxResults

      public void setMaxResults(long maxResults)
      Max results to be returned
    • getLabels

      public String getLabels()
    • setLabels

      public void setLabels(String labels)
      Comma separated list of labels to take into account
    • isMarkAsRead

      public boolean isMarkAsRead()
    • setMarkAsRead

      public void setMarkAsRead(boolean markAsRead)
      Mark the message as read once it has been consumed
    • getServiceAccountKey

      public String getServiceAccountKey()
    • setServiceAccountKey

      public void setServiceAccountKey(String serviceAccountKey)
      Sets "*.json" file with credentials for Service account
      Parameters:
      serviceAccountKey - String file, classpath, or http url
    • getDelegate

      public String getDelegate()
    • setDelegate

      public void setDelegate(String delegate)
      Delegate for wide-domain service account
    • getScopes

      public List<String> getScopes()
    • setScopes

      public void setScopes(List<String> scopes)
      GMail scopes
      See Also:
      • GmailScopes
    • copy