private static String appName = null;
+ private static String appIdentifier = null;
+
public static void init(Properties conf) {
securePort = port = "";
if ( !conf.getProperty("https.port").equals("443")) {
if (appName == null) {
throw new Error("App name missing");
}
+ appIdentifier = conf.getProperty("appIdentifier");
+ if (appIdentifier == null) {
+ throw new Error("App identifier missing");
+ }
}
public static String getHostName(Host h) {
return appName;
}
+ public static String getAppIdentifier() {
+ if (appIdentifier == null) {
+ throw new Error("AppIdentifier not initialized.");
+ }
+ return appIdentifier;
+ }
+
}