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;
  }
static private ServiceType decodePathExtension(String path) {
    
    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;
  }
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

@param path the path to examine for extension
@return ServiceType inferred from the extension or null
Check path extension ; assumes no query or fragment