@Test public void testCreateServerURI() { Settings settings = createHttpDefaultPortSettings(); String serverUri = Settings.createServerURI(); String expectedValue = "http: assertEquals("no :port appended if default http port 80 is used.", expectedValue, serverUri); settings = createHttpOtherPortSettings(); serverUri = Settings.createServerURI(); expectedValue = "http: assertEquals("other :port appended.", expectedValue, serverUri); settings = createHttpsDefaultPortSettings(); serverUri = Settings.createServerURI(); expectedValue = "https: assertEquals("no :port appended if default https port 443 is used.", expectedValue, serverUri); settings = createHttpsOtherPortSettings(); serverUri = Settings.createServerURI(); expectedValue = "https: assertEquals("other :port appended.", expectedValue, serverUri); }
public static String createServerURI() { String uri; String port; if (isSecurePortAvailable()) { port = Settings.getServerconfig("server_securePort"); uri = "https: } else { port = Settings.getServerconfig("server_insecurePort"); uri = "http: } return uri; }
Settings { public static String createServerURI() { String uri; String port; if (isSecurePortAvailable()) { port = Settings.getServerconfig("server_securePort"); uri = "https: } else { port = Settings.getServerconfig("server_insecurePort"); uri = "http: } return uri; } }
Settings { public static String createServerURI() { String uri; String port; if (isSecurePortAvailable()) { port = Settings.getServerconfig("server_securePort"); uri = "https: } else { port = Settings.getServerconfig("server_insecurePort"); uri = "http: } return uri; } protected  Settings(); }
Settings { public static String createServerURI() { String uri; String port; if (isSecurePortAvailable()) { port = Settings.getServerconfig("server_securePort"); uri = "https: } else { port = Settings.getServerconfig("server_insecurePort"); uri = "http: } return uri; } protected  Settings(); static String getBuildIdentifier(); static Date getBuildDate(); static boolean isDebuging(); static boolean isAjaxGloballyOn(); static boolean isAllowLoadtestMode(); void setAllowLoadtestMode(boolean allowLoadtestMode); static boolean isReadOnlyDebug(); void setReadOnlyDebug(boolean readOnlyDebug); void setAjaxGloballyOn(boolean ajaxGloballyOn); static void setAjaxGloballyEnabled(boolean ajaxGloballyOn); static String getVersionId(); static String getVersion(); static String getFullVersionInfo(); void setVersion(String version); static String getServerconfig(String key); void setServerconfig(Map<String, String> serverconfig); void setSessionTimeout(int sessionTimeout); static int getSessionTimeout(); void setDebug(boolean debug); static String getGuiThemeIdentifyer(); void setGuiThemeIdentifyer(String guiThemeIdentifyer); static boolean isModjkEnabled(); static String getURIScheme(); static String createServerURI(); static String getServerContextPathURI(); static boolean isJUnitTest(); static void setJUnitTest(boolean b); static String getApplicationName(); void setApplicationName(String applicationName); void setNodeId(int nodeId); void setClusterMode(String clusterMode); static String getClusterMode(); static String getNodeInfo(); void setAjaxBlacklistedUserAgents(List<String> userAgents); }
Settings { public static String createServerURI() { String uri; String port; if (isSecurePortAvailable()) { port = Settings.getServerconfig("server_securePort"); uri = "https: } else { port = Settings.getServerconfig("server_insecurePort"); uri = "http: } return uri; } protected  Settings(); static String getBuildIdentifier(); static Date getBuildDate(); static boolean isDebuging(); static boolean isAjaxGloballyOn(); static boolean isAllowLoadtestMode(); void setAllowLoadtestMode(boolean allowLoadtestMode); static boolean isReadOnlyDebug(); void setReadOnlyDebug(boolean readOnlyDebug); void setAjaxGloballyOn(boolean ajaxGloballyOn); static void setAjaxGloballyEnabled(boolean ajaxGloballyOn); static String getVersionId(); static String getVersion(); static String getFullVersionInfo(); void setVersion(String version); static String getServerconfig(String key); void setServerconfig(Map<String, String> serverconfig); void setSessionTimeout(int sessionTimeout); static int getSessionTimeout(); void setDebug(boolean debug); static String getGuiThemeIdentifyer(); void setGuiThemeIdentifyer(String guiThemeIdentifyer); static boolean isModjkEnabled(); static String getURIScheme(); static String createServerURI(); static String getServerContextPathURI(); static boolean isJUnitTest(); static void setJUnitTest(boolean b); static String getApplicationName(); void setApplicationName(String applicationName); void setNodeId(int nodeId); void setClusterMode(String clusterMode); static String getClusterMode(); static String getNodeInfo(); void setAjaxBlacklistedUserAgents(List<String> userAgents);  }