static private ServiceType decodePathExtension ( String path ) { // Look at the path extensions if ( path . endsWith ( ".dds" ) || path . endsWith ( ".das" ) || path . endsWith ( ".dods" ) ) return ServiceType . OPENDAP ; if ( path . endsWith ( ".dmr" ) || path . endsWith ( ".dap" ) || path . endsWith ( ".dsr" ) ) return ServiceType . DAP4 ; if ( path . endsWith ( ".xml" ) || path . endsWith ( ".ncml" ) ) return ServiceType . NCML ; return null ; }
Check path extension ; assumes no query or fragment