public class NinjaAppengineEnvironmentImpl extends Object implements NinjaAppengineEnvironment, com.google.apphosting.api.ApiProxy.Environment, com.google.appengine.tools.development.LocalServerEnvironment
| Constructor and Description |
|---|
NinjaAppengineEnvironmentImpl(ninja.utils.NinjaProperties ninjaProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enforceApiDeadlines() |
String |
getAddress() |
File |
getAppDir() |
String |
getAppId() |
Map<String,Object> |
getAttributes() |
String |
getAuthDomain() |
String |
getDefaultNamespace() |
String |
getEmail() |
String |
getHostName() |
String |
getModuleId() |
int |
getPort() |
long |
getRemainingMillis() |
String |
getRequestNamespace() |
String |
getVersionId() |
void |
initOrSkip()
Inits the dev environment for this thread or skips the init.
|
boolean |
isAdmin() |
boolean |
isLoggedIn() |
void |
setDefaultNamespace(String ns) |
boolean |
simulateProductionLatencies() |
void |
waitForServerToStart() |
@Inject public NinjaAppengineEnvironmentImpl(ninja.utils.NinjaProperties ninjaProperties)
public String getAppId()
getAppId in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getVersionId()
getVersionId in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getEmail()
getEmail in interface com.google.apphosting.api.ApiProxy.Environmentpublic boolean isLoggedIn()
isLoggedIn in interface com.google.apphosting.api.ApiProxy.Environmentpublic boolean isAdmin()
isAdmin in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getAuthDomain()
getAuthDomain in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getRequestNamespace()
getRequestNamespace in interface com.google.apphosting.api.ApiProxy.Environmentpublic String getDefaultNamespace()
public void setDefaultNamespace(String ns)
public Map<String,Object> getAttributes()
getAttributes in interface com.google.apphosting.api.ApiProxy.Environmentpublic void waitForServerToStart()
throws InterruptedException
waitForServerToStart in interface com.google.appengine.tools.development.LocalServerEnvironmentInterruptedExceptionpublic int getPort()
getPort in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic File getAppDir()
getAppDir in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic String getAddress()
getAddress in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic boolean enforceApiDeadlines()
enforceApiDeadlines in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic boolean simulateProductionLatencies()
simulateProductionLatencies in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic String getHostName()
getHostName in interface com.google.appengine.tools.development.LocalServerEnvironmentpublic long getRemainingMillis()
getRemainingMillis in interface com.google.apphosting.api.ApiProxy.Environmentpublic void initOrSkip()
NinjaAppengineEnvironmentNinjaAppengineEnvironmentProviderinitOrSkip in interface NinjaAppengineEnvironmentpublic String getModuleId()
getModuleId in interface com.google.apphosting.api.ApiProxy.EnvironmentCopyright © 2015. All Rights Reserved.