public static class AppAdminFactory.ConnectOptions
extends java.lang.Object
Constructor and Description |
---|
AppAdminFactory.ConnectOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
com.google.appengine.tools.util.ClientCookieManager |
getCookies()
Retrieves the current cookie manager.
|
java.lang.String |
getHost()
Returns the value used for the Host header sent to the server with RPCs.
|
java.lang.String |
getOauthToken()
Returns the OAuth 2.0 token being used for authentication, or
null if none. |
AppAdminFactory.PasswordPrompt |
getPasswordPrompt()
Retrieves the prompter used to get the user's password.
|
boolean |
getRetainUploadDir()
Returns
true if the upload directory should not be deleted. |
java.lang.String |
getSdkRoot()
Returns the location of the AppEngine SDK directory.
|
boolean |
getSecure()
Returns whether to use HTTPS for communicating with the Admin Console.
|
java.lang.String |
getServer()
Returns the server address to connect to.
|
boolean |
getUsePersistedCredentials()
Returns whether to use persisted credentials (load/save to/from disk).
|
java.lang.String |
getUserId()
Retrieves the user's email address used to authenticate to the server.
|
int |
hashCode() |
void |
setCookies(com.google.appengine.tools.util.ClientCookieManager cookies)
Associates a
ClientCookieManager to store cookies received from
the server, for later reuse in other requests. |
void |
setHost(java.lang.String host)
The host name to supply to the remote server.
|
void |
setOauthToken(java.lang.String oauthToken)
Sets the OAuth 2.0 token to use for authentication (instead of requiring
a username and password).
|
void |
setPasswordPrompt(AppAdminFactory.PasswordPrompt prompt)
The password prompt to get the user's password.
|
void |
setRetainUploadDir(boolean flag)
Controls whether we clean up our temporary files, or leave it for
debugging.
|
void |
setSdkRoot(java.lang.String sdkRoot)
A file path to the top directory of the Google App Engine SDK.
|
void |
setSecure(boolean secure)
Sets whether to use HTTPS for communicating with the Admin Console.
|
void |
setServer(java.lang.String server)
The remote administration server to connect to.
|
void |
setUsePersistedCredentials(boolean usePersistedCredentials)
Sets whether to use persisted credentials (load/save to/from disk).
|
void |
setUserId(java.lang.String userId)
The user id for the App Engine account.
|
public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- the not null
e-mail addresspublic AppAdminFactory.PasswordPrompt getPasswordPrompt()
AppAdminFactory.PasswordPrompt
to be usedpublic void setPasswordPrompt(AppAdminFactory.PasswordPrompt prompt)
prompt
- the AppAdminFactory.PasswordPrompt
that's being usedpublic java.lang.String getServer()
public void setServer(java.lang.String server)
server
- May be set to null
to use the default server.public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- May be set to null
to use the default host name.public void setRetainUploadDir(boolean flag)
public boolean getRetainUploadDir()
true
if the upload directory should not be deleted.public java.lang.String getSdkRoot()
public void setSdkRoot(java.lang.String sdkRoot)
sdkRoot
- the not null
path to the SDKpublic com.google.appengine.tools.util.ClientCookieManager getCookies()
setCookies(ClientCookieManager)
.public void setCookies(com.google.appengine.tools.util.ClientCookieManager cookies)
ClientCookieManager
to store cookies received from
the server, for later reuse in other requests.cookies
- the cookie manager to usepublic boolean getSecure()
public void setSecure(boolean secure)
secure
- true for HTTPS, false for HTTPpublic void setOauthToken(java.lang.String oauthToken)
public java.lang.String getOauthToken()
null
if none.public void setUsePersistedCredentials(boolean usePersistedCredentials)
public boolean getUsePersistedCredentials()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object