|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.tools.remoteapi.RemoteApiOptions
public class RemoteApiOptions
A mutable object containing settings for installing the remote API.
Example for connecting to a development app server:
RemoteApiOptions options = new RemoteApiOptions() .server("localhost", 8888), .credentials("username", "password does not matter");
Example for connecting to a deployed app:
RemoteApiOptions options = new RemoteApiOptions() .server("myappid.appspot.com", 443), .credentials(adminUsername, adminPassword);
The options should be passed to RemoteApiInstaller.install(com.google.appengine.tools.remoteapi.RemoteApiOptions)
.
Constructor Summary | |
---|---|
RemoteApiOptions()
|
Method Summary | |
---|---|
RemoteApiOptions |
copy()
|
RemoteApiOptions |
credentials(java.lang.String newUserEMail,
java.lang.String newPassword)
Sets a username and password to be used for logging in via the ClientLogin API. |
RemoteApiOptions |
datastoreQueryFetchSize(int newValue)
When executing a datastore query, this is the number of results to fetch per HTTP request. |
java.lang.String |
getCredentialsToReuse()
|
int |
getDatastoreQueryFetchSize()
|
java.lang.String |
getHostname()
|
int |
getMaxConcurrentRequests()
|
int |
getMaxHttpResponseSize()
|
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getRemoteApiPath()
|
java.lang.String |
getUserEmail()
|
RemoteApiOptions |
maxConcurrentRequests(int newValue)
This parameter controls the maximum number of async API requests that will be in flight at once. |
RemoteApiOptions |
maxHttpResponseSize(int newValue)
When making a remote call, this is the maximum size of the HTTP response. |
RemoteApiOptions |
remoteApiPath(java.lang.String newPath)
Sets the path used to access the remote API. |
RemoteApiOptions |
reuseCredentials(java.lang.String newUserEmail,
java.lang.String serializedCredentials)
Reuses credentials from another AppEngineClient. |
RemoteApiOptions |
server(java.lang.String newHostname,
int newPort)
Sets the host and port port where we will connect. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RemoteApiOptions()
Method Detail |
---|
public RemoteApiOptions server(java.lang.String newHostname, int newPort)
public RemoteApiOptions credentials(java.lang.String newUserEMail, java.lang.String newPassword)
public RemoteApiOptions reuseCredentials(java.lang.String newUserEmail, java.lang.String serializedCredentials)
newUserEmail
- the email address of the user we want to log in as.serializedCredentials
- a string returned by calling
AppEngineClient.serializeCredentials()
on the previous clientpublic RemoteApiOptions remoteApiPath(java.lang.String newPath)
public RemoteApiOptions maxConcurrentRequests(int newValue)
public RemoteApiOptions datastoreQueryFetchSize(int newValue)
(This value can be overridden by the code using the datastore API.)
public RemoteApiOptions maxHttpResponseSize(int newValue)
public RemoteApiOptions copy()
public java.lang.String getHostname()
public int getPort()
public java.lang.String getUserEmail()
public java.lang.String getPassword()
public java.lang.String getCredentialsToReuse()
public java.lang.String getRemoteApiPath()
public int getMaxConcurrentRequests()
public int getDatastoreQueryFetchSize()
public int getMaxHttpResponseSize()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |