IBaseGmailClient

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public interface IBaseGmailClient extends System.IDisposable, Closeable

Interface for base class of Gmail client

Methods

MethodDescription
close()
getAccessToken()Gets or sets OAuth 2.0 bearer token
getDefaultEmail()Gets default email address
getProxy()Gets or sets the proxy.
getTimeout()Gets or sets the number of milliseconds to wait before the operation times out.
refreshToken()Refresh access token
setAccessToken(String value)Gets or sets OAuth 2.0 bearer token
setProxy(System.Net.IWebProxy value)Gets or sets the proxy.
setTimeout(int value)Gets or sets the number of milliseconds to wait before the operation times out.

close()

public abstract void close()

getAccessToken()

public abstract String getAccessToken()

Gets or sets OAuth 2.0 bearer token

Returns: java.lang.String

getDefaultEmail()

public abstract String getDefaultEmail()

Gets default email address

Returns: java.lang.String

getProxy()

public abstract System.Net.IWebProxy getProxy()

Gets or sets the proxy.

Returns: com.aspose.ms.System.Net.IWebProxy

getTimeout()

public abstract int getTimeout()

Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

Returns: int

refreshToken()

public abstract void refreshToken()

Refresh access token

setAccessToken(String value)

public abstract void setAccessToken(String value)

Gets or sets OAuth 2.0 bearer token

Parameters:

ParameterTypeDescription
valuejava.lang.String

setProxy(System.Net.IWebProxy value)

public abstract void setProxy(System.Net.IWebProxy value)

Gets or sets the proxy.

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Net.IWebProxy

setTimeout(int value)

public abstract void setTimeout(int value)

Gets or sets the number of milliseconds to wait before the operation times out. The default value is 100,000 milliseconds (100 seconds).

Parameters:

ParameterTypeDescription
valueint