Class GoogleMailStreamConfiguration
java.lang.Object
org.apache.camel.component.google.mail.stream.GoogleMailStreamConfiguration
- All Implemented Interfaces:
Cloneable
Component configuration for GoogleMail stream component.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
getIndex()
long
getQuery()
boolean
void
setAccessToken
(String accessToken) OAuth 2 access token.void
setApplicationName
(String applicationName) Google mail application name.void
setClientId
(String clientId) Client ID of the mail applicationvoid
setClientSecret
(String clientSecret) Client secret of the mail applicationvoid
setDelegate
(String delegate) Delegate for wide-domain service accountvoid
Currently not in usevoid
Comma separated list of labels to take into accountvoid
setMarkAsRead
(boolean markAsRead) Mark the message as read once it has been consumedvoid
setMaxResults
(long maxResults) Max results to be returnedvoid
The query to execute on gmail boxvoid
setRefreshToken
(String refreshToken) OAuth 2 refresh token.void
GMail scopesvoid
setServiceAccountKey
(String serviceAccountKey) Sets "*.json" file with credentials for Service account
-
Constructor Details
-
GoogleMailStreamConfiguration
public GoogleMailStreamConfiguration()
-
-
Method Details
-
getClientId
-
setClientId
Client ID of the mail application -
getClientSecret
-
setClientSecret
Client secret of the mail application -
getAccessToken
-
setAccessToken
OAuth 2 access token. This typically expires after an hour so refreshToken is recommended for long term usage. -
getRefreshToken
-
setRefreshToken
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
-
setApplicationName
Google mail application name. Example would be "camel-google-mail/1.0" -
getIndex
-
setIndex
Currently not in use -
getQuery
-
setQuery
The query to execute on gmail box -
getMaxResults
public long getMaxResults() -
setMaxResults
public void setMaxResults(long maxResults) Max results to be returned -
getLabels
-
setLabels
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
-
setServiceAccountKey
Sets "*.json" file with credentials for Service account- Parameters:
serviceAccountKey
- String file, classpath, or http url
-
getDelegate
-
setDelegate
Delegate for wide-domain service account -
getScopes
-
setScopes
GMail scopes- See Also:
-
GmailScopes
-
copy
-