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

public static int getEffectivePort ( String scheme , int specifiedPort ) { if ( specifiedPort != - 1 ) { return specifiedPort ; } if ( "http" . equalsIgnoreCase ( scheme ) ) { return 80 ; } else if ( "https" . equalsIgnoreCase ( scheme ) ) { return 443 ; } else { return - 1 ; } }
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;}}}
