]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/ServerConstants.java
Adding stub for gigi-api (api.gigi.org)
[gigi.git] / src / org / cacert / gigi / util / ServerConstants.java
index 28a52eb4e924332fc9726ed35473209fac42ac31..2f22d4396b4a38abfe26ed99149a4b1849ae8317 100644 (file)
@@ -6,6 +6,7 @@ public class ServerConstants {
        private static String wwwHostName = "www.cacert.local";
        private static String secureHostName = "secure.cacert.local";
        private static String staticHostName = "static.cacert.local";
+       private static String apiHostName = "api.cacert.local";
        private static String port;
        public static void init(Properties conf) {
                port = "";
@@ -15,6 +16,7 @@ public class ServerConstants {
                wwwHostName = conf.getProperty("name.www");
                secureHostName = conf.getProperty("name.secure");
                staticHostName = conf.getProperty("name.static");
+               apiHostName = conf.getProperty("name.api");
        }
        public static String getSecureHostName() {
                return secureHostName;
@@ -25,6 +27,9 @@ public class ServerConstants {
        public static String getWwwHostName() {
                return wwwHostName;
        }
+       public static String getApiHostName() {
+               return apiHostName;
+       }
        public static String getSecureHostNamePort() {
                return secureHostName + port;
        }
@@ -34,5 +39,8 @@ public class ServerConstants {
        public static String getWwwHostNamePort() {
                return wwwHostName + port;
        }
+       public static String getApiHostNamePort() {
+               return apiHostName + port;
+       }
 
 }