public class AppEngineUtil
extends java.lang.Object
| Constructor and Description |
|---|
AppEngineUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getApplicationDefaultHostname(java.lang.String appDir)
Given the directory of an App Engine Application, returns its default hostname by checking
app.yaml or appengine-web.xml.
|
static java.lang.String |
getApplicationId(java.lang.String appDir)
Given the directory of an App Engine application, returns its application id by checking
WEB-INF/app.yaml first and then WEB-INF/appengine-web.xml.
|
static java.lang.String |
getApplicationVersion(java.lang.String appDir)
Given the directory of an App Engine application, returns its version by checking
war/WEB-INF/app.yaml first and then war/WEB-INF/appengine-web.xml.
|
static java.lang.String |
getDefaultHostnameFromAppId(java.lang.String appId)
Returns the default hostname for an app id.
|
public static java.lang.String getApplicationId(java.lang.String appDir)
public static java.lang.String getApplicationVersion(java.lang.String appDir)
public static java.lang.String getApplicationDefaultHostname(java.lang.String appDir)
public static java.lang.String getDefaultHostnameFromAppId(java.lang.String appId)
java.lang.IllegalArgumentException - if a domain app that's not google.com or appId is null.