Class GoogleMailConfiguration
- java.lang.Object
-
- org.apache.camel.component.google.mail.GoogleMailConfiguration
-
- Direct Known Subclasses:
GmailUsersDraftsEndpointConfiguration
,GmailUsersEndpointConfiguration
,GmailUsersHistoryEndpointConfiguration
,GmailUsersLabelsEndpointConfiguration
,GmailUsersMessagesAttachmentsEndpointConfiguration
,GmailUsersMessagesEndpointConfiguration
,GmailUsersThreadsEndpointConfiguration
@UriParams @Configurer(extended=true) public class GoogleMailConfiguration extends Object
Component configuration for GoogleMail component.
-
-
Constructor Summary
Constructors Constructor Description GoogleMailConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccessToken()
GoogleMailApiName
getApiName()
String
getApplicationName()
String
getClientId()
String
getClientSecret()
String
getDelegate()
String
getMethodName()
String
getRefreshToken()
Collection<String>
getScopes()
String
getServiceAccountKey()
void
setAccessToken(String accessToken)
OAuth 2 access token.void
setApiName(GoogleMailApiName apiName)
What kind of operation to performvoid
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
setMethodName(String methodName)
What sub operation to use for the selected operationvoid
setRefreshToken(String refreshToken)
OAuth 2 refresh token.void
setScopes(Collection<String> scopes)
GMail scopesvoid
setServiceAccountKey(String serviceAccountKey)
Service account key in json format to authenticate an application as a service account.
-
-
-
Method Detail
-
getApiName
public GoogleMailApiName getApiName()
-
setApiName
public void setApiName(GoogleMailApiName apiName)
What kind of operation to perform
-
getMethodName
public String getMethodName()
-
setMethodName
public void setMethodName(String methodName)
What sub operation to use for the selected operation
-
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"
-
getServiceAccountKey
public String getServiceAccountKey()
-
setServiceAccountKey
public void setServiceAccountKey(String serviceAccountKey)
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
public String getDelegate()
-
setDelegate
public void setDelegate(String delegate)
Delegate for wide-domain service account
-
getScopes
public Collection<String> getScopes()
-
setScopes
public void setScopes(Collection<String> scopes)
GMail scopes- See Also:
GmailScopes
-
-