public class EnvUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_VERSION_HOSTNAME |
static java.lang.String |
ENV_APPENGINE_PROD |
static java.lang.String |
ENV_APPENGINE_RUNTIME |
| Constructor and Description |
|---|
EnvUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRunningOnAppEngine()
Returns whether this is an Endpoints backend running on App Engine.
|
static boolean |
isRunningOnAppEngineProd()
Returns whether this is an Endpoints backend running on App Engine in production.
|
static void |
recoverAppEngineRuntime()
Resets ENV_APPENGINE_RUNTIME to its original state.
|
public static final java.lang.String ENV_APPENGINE_RUNTIME
public static final java.lang.String ENV_APPENGINE_PROD
public static final java.lang.String DEFAULT_VERSION_HOSTNAME
public static void recoverAppEngineRuntime()
public static boolean isRunningOnAppEngine()
public static boolean isRunningOnAppEngineProd()
false if the backend is local using App Engine dev server or if not running on App
Engine at all (Tornado backend).