public static String getDefaultPortForScheme(final String scheme) {
        if ("ftp".equals(scheme)) {
            return "21";
        }
        if ("file".equals(scheme)) {
            return null;
        }
        if ("gopher".equals(scheme)) {
            return "70";
        }
        if ("http".equals(scheme)) {
            return "80";
        }
        if ("https".equals(scheme)) {
            return "443";
        }
        if ("ws".equals(scheme)) {
            return "80";
        }
        if ("wss".equals(scheme)) {
            return "443";
        }
        return null;
    }
public static String getDefaultPortForScheme(final String scheme) {
        if ("ftp".equals(scheme)) {
            return "21";
        }
        if ("file".equals(scheme)) {
            return null;
        }
        if ("gopher".equals(scheme)) {
            return "70";
        }
        if ("http".equals(scheme)) {
            return "80";
        }
        if ("https".equals(scheme)) {
            return "443";
        }
        if ("ws".equals(scheme)) {
            return "80";
        }
        if ("wss".equals(scheme)) {
            return "443";
        }
        return null;
    }
public static String getDefaultPortForScheme ( final String scheme ) { if ( "ftp" . equals ( scheme ) ) { return "21" ; } if ( "file" . equals ( scheme ) ) { return null ; } if ( "gopher" . equals ( scheme ) ) { return "70" ; } if ( "http" . equals ( scheme ) ) { return "80" ; } if ( "https" . equals ( scheme ) ) { return "443" ; } if ( "ws" . equals ( scheme ) ) { return "80" ; } if ( "wss" . equals ( scheme ) ) { return "443" ; } return null ; }
Gets the default port for a given schema. That is:

<ol>
<li>ftp - 21</li>
<li>file - null</li>
<li>gopher - 70</li>
<li>http - 80</li>
<li>https - 443</li>
<li>ws - 80</li>
<li>wss - 433</li>
</ol>

@param scheme
@return
Gets the default port for a given schema . That is :