Class GoogleMailStreamConfiguration

  • All Implemented Interfaces:
    Cloneable

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

      • GoogleMailStreamConfiguration

        public GoogleMailStreamConfiguration()
    • Method Detail

      • 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.
      • 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
      • setScopes

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