|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.common.lib.auth.ClientLoginTokens.ForApiBuilder
public static class ClientLoginTokens.ForApiBuilder
Builder for ClientLoginTokens.
| Field Summary |
|---|
| Fields inherited from interface com.google.api.ads.common.lib.utils.Builder |
|---|
DEFAULT_CONFIGURATION_FILENAME |
| Method Summary | |
|---|---|
ClientLoginTokens |
build()
Constructs this object. |
ClientLoginTokens.ForApiBuilder |
from(org.apache.commons.configuration.Configuration config)
Reads properties from the provided Configuration object
Known properties: clientLoginServerUrl - e.g. |
ClientLoginTokens.ForApiBuilder |
fromFile()
Loads credentials from "ads.properties" file in one of the following locations according to the following order: in the current directory, in the user home directory, in the classpath |
ClientLoginTokens.ForApiBuilder |
fromFile(File path)
Populates this builder from a properties file from a specified path. |
ClientLoginTokens.ForApiBuilder |
fromFile(String path)
Populates this builder from a properties file from a specified path. |
ClientLoginTokens.ForApiBuilder |
fromFile(URL path)
Populates this builder from a properties file from a specified path. |
ClientLoginTokens.ForApiBuilder |
withClientLoginServerUrl(String serverUrl)
Sets the client login server that the token will be fetched typically in the form of https://www.google.com |
ClientLoginTokens.ForApiBuilder |
withEmailAndPassword(String email,
String password)
Includes email & password to fetch client login token. |
ClientLoginTokens.ForApiBuilder |
withHttpTransport(com.google.api.client.http.HttpTransport httpTransport)
Sets the HttpTransport to be used to make the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public ClientLoginTokens.ForApiBuilder fromFile(String path)
Builder
fromFile in interface Builder<ClientLoginTokens>path - the path to try first as a resource, then as a file
public ClientLoginTokens.ForApiBuilder fromFile(File path)
Builder
fromFile in interface Builder<ClientLoginTokens>path - the path to load properties from
public ClientLoginTokens.ForApiBuilder fromFile(URL path)
Builder
fromFile in interface Builder<ClientLoginTokens>path - the path to try first as a resource, then as a file
public ClientLoginTokens.ForApiBuilder fromFile()
Builder
fromFile in interface Builder<ClientLoginTokens>public ClientLoginTokens.ForApiBuilder from(org.apache.commons.configuration.Configuration config)
Configuration object
api.adwords.clientLoginToken
from in interface Builder<ClientLoginTokens>config - the configuration
public ClientLoginTokens.ForApiBuilder withEmailAndPassword(String email,
String password)
public ClientLoginTokens.ForApiBuilder withHttpTransport(com.google.api.client.http.HttpTransport httpTransport)
HttpTransport to be used to make the request. By
default, NetHttpTransport will be used, but due to some
environment restrictions, you may want to use a different transport,
such as UrlFetchTransport for AppEngine.
public ClientLoginTokens.ForApiBuilder withClientLoginServerUrl(String serverUrl)
https://www.google.com
public ClientLoginTokens build()
throws ValidationException
Builder
build in interface Builder<ClientLoginTokens>ValidationException - if the provided data is not valid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||