Class GoogleMailConfiguration
java.lang.Object
org.apache.camel.component.google.mail.GoogleMailConfiguration
- Direct Known Subclasses:
GmailUsersDraftsEndpointConfiguration,GmailUsersEndpointConfiguration,GmailUsersHistoryEndpointConfiguration,GmailUsersLabelsEndpointConfiguration,GmailUsersMessagesAttachmentsEndpointConfiguration,GmailUsersMessagesEndpointConfiguration,GmailUsersThreadsEndpointConfiguration
Component configuration for GoogleMail component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAccessToken(String accessToken) OAuth 2 access token.voidsetApiName(GoogleMailApiName apiName) What kind of operation to performvoidsetApplicationName(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 accountvoidsetMethodName(String methodName) What sub operation to use for the selected operationvoidsetRefreshToken(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) Service account key in json format to authenticate an application as a service account.
-
Constructor Details
-
GoogleMailConfiguration
public GoogleMailConfiguration()
-
-
Method Details
-
getApiName
-
setApiName
What kind of operation to perform -
getMethodName
-
setMethodName
What sub operation to use for the selected operation -
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. -
getApplicationName
-
setApplicationName
Google mail application name. Example would be "camel-google-mail/1.0" -
getServiceAccountKey
-
setServiceAccountKey
Service account key in json format to authenticate an application as a service account. Accept base64 adding the prefix "base64:"- Parameters:
serviceAccountKey- String file, classpath, base64, 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:
-