static private ServiceType searchPath ( String url ) { if ( false ) { // Disable for now if ( url == null || url . length ( ) == 0 ) return null ; url = url . toLowerCase ( ) ; // for matching purposes for ( int i = 0 ; i < FRAGPROTOCOLS . length ; i ++ ) { String p = FRAGPROTOCOLS [ i ] ; if ( url . indexOf ( "/thredds/" + p . toLowerCase ( ) + "/" ) >= 0 ) { return FRAGPROTOSVCTYPE [ i ] ; } } } return null ; }
Given a url search the path to look for protocol indicators