com.google.appengine.tools.admin
Class AppAdminFactory.ConnectOptions
- java.lang.Object
-
- com.google.appengine.tools.admin.AppAdminFactory.ConnectOptions
-
- Enclosing class:
- AppAdminFactory
public static class AppAdminFactory.ConnectOptions extends java.lang.ObjectThe options used to connect to the remote App Engine administration server.
-
-
Constructor Summary
Constructors Constructor and Description ConnectOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)com.google.appengine.tools.util.ClientCookieManagergetCookies()Retrieves the current cookie manager.java.lang.StringgetHost()Returns the value used for the Host header sent to the server with RPCs.java.lang.StringgetOauthToken()Returns the OAuth 2.0 token being used for authentication, ornullif none.AppAdminFactory.PasswordPromptgetPasswordPrompt()Retrieves the prompter used to get the user's password.booleangetRetainUploadDir()Returnstrueif the upload directory should not be deleted.java.lang.StringgetSdkRoot()Returns the location of the AppEngine SDK directory.booleangetSecure()Returns whether to use HTTPS for communicating with the Admin Console.java.lang.StringgetServer()Returns the server address to connect to.booleangetUsePersistedCredentials()Returns whether to use persisted credentials (load/save to/from disk).java.lang.StringgetUserId()Retrieves the user's email address used to authenticate to the server.inthashCode()voidsetCookies(com.google.appengine.tools.util.ClientCookieManager cookies)Associates aClientCookieManagerto store cookies received from the server, for later reuse in other requests.voidsetHost(java.lang.String host)The host name to supply to the remote server.voidsetOauthToken(java.lang.String oauthToken)Sets the OAuth 2.0 token to use for authentication (instead of requiring a username and password).voidsetPasswordPrompt(AppAdminFactory.PasswordPrompt prompt)The password prompt to get the user's password.voidsetRetainUploadDir(boolean flag)Controls whether we clean up our temporary files, or leave it for debugging.voidsetSdkRoot(java.lang.String sdkRoot)A file path to the top directory of the Google App Engine SDK.voidsetSecure(boolean secure)Sets whether to use HTTPS for communicating with the Admin Console.voidsetServer(java.lang.String server)The remote administration server to connect to.voidsetUsePersistedCredentials(boolean usePersistedCredentials)Sets whether to use persisted credentials (load/save to/from disk).voidsetUserId(java.lang.String userId)The user id for the App Engine account.
-
-
-
Method Detail
-
getUserId
public java.lang.String getUserId()
Retrieves the user's email address used to authenticate to the server.- Returns:
- user identity
-
setUserId
public void setUserId(java.lang.String userId)
The user id for the App Engine account. This should be the same e-mail address used to register the account owning the App Engine application.- Parameters:
userId- the notnulle-mail address
-
getPasswordPrompt
public AppAdminFactory.PasswordPrompt getPasswordPrompt()
Retrieves the prompter used to get the user's password.- Returns:
- the
AppAdminFactory.PasswordPromptto be used
-
setPasswordPrompt
public void setPasswordPrompt(AppAdminFactory.PasswordPrompt prompt)
The password prompt to get the user's password.- Parameters:
prompt- theAppAdminFactory.PasswordPromptthat's being used
-
getServer
public java.lang.String getServer()
Returns the server address to connect to.
-
setServer
public void setServer(java.lang.String server)
The remote administration server to connect to. This is an advanced option that should rarely be set by users.- Parameters:
server- May be set tonullto use the default server.
-
getHost
public java.lang.String getHost()
Returns the value used for the Host header sent to the server with RPCs.- Returns:
- hostname to insert into request headers
-
setHost
public void setHost(java.lang.String host)
The host name to supply to the remote server. This is an advanced option that should rarely be set by users.- Parameters:
host- May be set tonullto use the default host name.
-
setRetainUploadDir
public void setRetainUploadDir(boolean flag)
Controls whether we clean up our temporary files, or leave it for debugging.
-
getRetainUploadDir
public boolean getRetainUploadDir()
Returnstrueif the upload directory should not be deleted.
-
getSdkRoot
public java.lang.String getSdkRoot()
Returns the location of the AppEngine SDK directory.
-
setSdkRoot
public void setSdkRoot(java.lang.String sdkRoot)
A file path to the top directory of the Google App Engine SDK.- Parameters:
sdkRoot- the notnullpath to the SDK
-
getCookies
public com.google.appengine.tools.util.ClientCookieManager getCookies()
Retrieves the current cookie manager.- Returns:
- the cookie manager set with
setCookies(ClientCookieManager).
-
setCookies
public void setCookies(com.google.appengine.tools.util.ClientCookieManager cookies)
Associates aClientCookieManagerto store cookies received from the server, for later reuse in other requests.- Parameters:
cookies- the cookie manager to use
-
getSecure
public boolean getSecure()
Returns whether to use HTTPS for communicating with the Admin Console. By default, this returns true.
-
setSecure
public void setSecure(boolean secure)
Sets whether to use HTTPS for communicating with the Admin Console.- Parameters:
secure- true for HTTPS, false for HTTP
-
setOauthToken
public void setOauthToken(java.lang.String oauthToken)
Sets the OAuth 2.0 token to use for authentication (instead of requiring a username and password).
-
getOauthToken
public java.lang.String getOauthToken()
Returns the OAuth 2.0 token being used for authentication, ornullif none.
-
setUsePersistedCredentials
public void setUsePersistedCredentials(boolean usePersistedCredentials)
Sets whether to use persisted credentials (load/save to/from disk).
-
getUsePersistedCredentials
public boolean getUsePersistedCredentials()
Returns whether to use persisted credentials (load/save to/from disk).
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-