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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()getIndex()longgetQuery()booleanbooleanisRaw()voidsetAccessToken(String accessToken) OAuth 2 access token.voidsetApplicationName(String applicationName) Google mail application name.voidsetClientId(String clientId) Client ID of the mail applicationvoidsetClientSecret(String clientSecret) Client secret of the mail applicationvoidsetDelegate(String delegate) Delegate for wide-domain service accountvoidCurrently not in usevoidComma separated list of labels to take into accountvoidsetMarkAsRead(boolean markAsRead) Mark the message as read once it has been consumedvoidsetMaxResults(long maxResults) Max results to be returnedvoidThe query to execute on gmail boxvoidsetRaw(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.voidsetRefreshToken(String refreshToken) OAuth 2 refresh token.voidSpecifies the level of permissions you want a calendar application to have to a user account.voidsetServiceAccountKey(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 Mail 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
-
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
-
getScopesAsList
-
setScopes
Specifies the level of permissions you want a calendar application to have to a user account. See https://developers.google.com/identity/protocols/googlescopes for more info. Multiple scopes can be separated by comma.- See Also:
-
copy
-