|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.appengine.api.utils.SystemProperty
public class SystemProperty
Global system properties which are set by App Engine.
Example code:
if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) { // do something that's production-only } String version = SystemProperty.version.get();
Nested Class Summary | |
---|---|
static class |
SystemProperty.Environment
The current executing environment. |
Field Summary | |
---|---|
static SystemProperty.Environment |
environment
The current executing environment. |
static SystemProperty |
version
The current executing version. |
Method Summary | |
---|---|
java.lang.String |
get()
Gets the value of the system property. |
java.lang.String |
key()
The key for the system property. |
void |
set(java.lang.String value)
Sets the value of the system property. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SystemProperty.Environment environment
"com.google.appengine.runtime.environment"
.
Has the values "Production"
and "Development"
.
public static final SystemProperty version
"com.google.appengine.runtime.version"
.
A Version value is composed of period-separated integers, for example,
"1.2.8".
Method Detail |
---|
public java.lang.String key()
public java.lang.String get()
System.getProperty(key())
.
public void set(java.lang.String value)
System.setProperty(key(), value)
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |