/** Build the cache for this data access. */ private SchemaCache buildCache() { try { return SchemaCache.buildAutomaticallyConfiguredUsingFileUrl( new URL(config.getBaseSchemasUrl())); } catch (MalformedURLException e) { LOGGER.warning( "Malformed mapping file URL: " + config.getBaseSchemasUrl() + " Detail: " + e.getMessage()); return null; } }
/** Build the catalog for this data access. */ private SchemaCatalog buildCatalog() { String catalogLocation = config.getCatalog(); if (catalogLocation == null) { return null; } else { URL baseUrl; try { baseUrl = new URL(config.getBaseSchemasUrl()); URL resolvedCatalogLocation = resolveResourceLocation(baseUrl, catalogLocation); return SchemaCatalog.build(resolvedCatalogLocation); } catch (MalformedURLException e) { LOGGER.warning( "Malformed URL encountered while setting OASIS catalog location. " + "Mapping file URL: " + config.getBaseSchemasUrl() + " Catalog location: " + config.getCatalog() + " Detail: " + e.getMessage()); return null; } } }
URL mappingFileUrl = new URL(config.getBaseSchemasUrl()); AppSchemaDataAccessConfigurator.LOGGER.finer( "mapping file URL is " + mappingFileUrl.toString());
AppSchemaDataAccessConfigurator.LOGGER.finer("about to parse target schemas"); final URL baseUrl = new URL(config.getBaseSchemasUrl());
/** * Build the cache for this data access. */ private AppSchemaCache buildCache() { try { return AppSchemaCache.buildAutomaticallyConfiguredUsingFileUrl( new URL(config.getBaseSchemasUrl())); } catch (MalformedURLException e) { LOGGER.warning("Malformed mapping file URL: " + config.getBaseSchemasUrl() + " Detail: " + e.getMessage()); return null; } }
/** * Build the catalog for this data access. */ private AppSchemaCatalog buildCatalog() { String catalogLocation = config.getCatalog(); if (catalogLocation == null) { return null; } else { URL baseUrl; try { baseUrl = new URL(config.getBaseSchemasUrl()); URL resolvedCatalogLocation = resolveResourceLocation(baseUrl, catalogLocation); return AppSchemaCatalog.build(resolvedCatalogLocation); } catch (MalformedURLException e) { LOGGER.warning("Malformed URL encountered while setting OASIS catalog location. " + "Mapping file URL: " + config.getBaseSchemasUrl() + " Catalog location: " + config.getCatalog() + " Detail: " + e.getMessage()); return null; } } }
URL mappingFileUrl = new URL(config.getBaseSchemasUrl()); AppSchemaDataAccessConfigurator.LOGGER.finer("mapping file URL is " + mappingFileUrl.toString());
AppSchemaDataAccessConfigurator.LOGGER.finer("about to parse target schemas"); final URL baseUrl = new URL(config.getBaseSchemasUrl());