Class GoogleMailStreamConfiguration
- java.lang.Object
-
- org.apache.camel.component.google.mail.stream.GoogleMailStreamConfiguration
-
-
Constructor Summary
Constructors Constructor Description GoogleMailStreamConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GoogleMailStreamConfiguration
copy()
String
getAccessToken()
String
getApplicationName()
String
getClientId()
String
getClientSecret()
String
getDelegate()
String
getIndex()
String
getKeyResource()
String
getLabels()
long
getMaxResults()
String
getQuery()
String
getRefreshToken()
List<String>
getScopes()
boolean
isMarkAsRead()
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
setIndex(String index)
Currently not in usevoid
setKeyResource(String keyResource)
Sets "*.json" file with credentials for Service accountvoid
setLabels(String labels)
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
setQuery(String query)
The query to execute on gmail boxvoid
setRefreshToken(String refreshToken)
OAuth 2 refresh token.void
setScopes(List<String> scopes)
GMail scopes
-
-
-
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
-
getKeyResource
public String getKeyResource()
-
setKeyResource
public void setKeyResource(String keyResource)
Sets "*.json" file with credentials for Service account- Parameters:
keyResource
- String file, classpath, or http url
-
getDelegate
public String getDelegate()
-
setDelegate
public void setDelegate(String delegate)
Delegate for wide-domain service account
-
copy
public GoogleMailStreamConfiguration copy()
-
-