public static int getEffectivePort(string scheme, int specifiedPort){if (specifiedPort != -1){return specifiedPort;}if (Sharpen.StringHelper.EqualsIgnoreCase("http", scheme)){return 80;}else{if (Sharpen.StringHelper.EqualsIgnoreCase("https", scheme)){return 443;}else{return -1;}}}