private final static int defaultPort ( String scheme ) { if ( scheme == null ) { return - 1 ; } Integer port = defaultPorts . get ( scheme . trim ( ) . toLowerCase ( ) ) ; return ( port != null ) ? port . intValue ( ) : - 1 ; }
Return the default port used by a given scheme .