boolean checkStoresOnStartup(XStreamPersister xp) { Resource f = resourceLoader.get("global.xml"); if (Resources.exists(f)) { try { GeoServerInfo global = depersist(xp, f, GeoServerInfo.class); final ResourceErrorHandling resourceErrorHandling = global.getResourceErrorHandling(); return resourceErrorHandling != null && !ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( resourceErrorHandling); } catch (IOException e) { LOGGER.log( Level.INFO, "Failed to determine the capabilities resource error handling", e); } } return true; }
if (other.getResourceErrorHandling() != null) return false; } else { if (!getResourceErrorHandling().equals(other.getResourceErrorHandling())) return false;
public WFS1_0(WFSInfo wfs, Catalog catalog) { super(wfs, WFSInfo.Version.V_10, catalog); this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wfs.getGeoServer().getGlobal().getResourceErrorHandling()); }
public WFS1_1( WFSInfo wfs, WFSInfo.Version version, String baseUrl, Catalog catalog, Collection<WFSExtendedCapabilitiesProvider> extCapsProviders) { super(wfs, version, catalog); skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wfs.getGeoServer().getGlobal().getResourceErrorHandling()); this.extCapsProviders = extCapsProviders; this.baseUrl = baseUrl; }
public WCS20GetCapabilitiesTransformer( GeoServer gs, CoverageResponseDelegateFinder responseFactory) { this.wcs = gs.getService(WCSInfo.class); this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( gs.getGlobal().getResourceErrorHandling()); this.responseFactory = responseFactory; setNamespaceDeclarationEnabled(false); }
/** Creates a new WFSCapsTransformer object. */ public Wcs10DescribeCoverageTransformer(WCSInfo wcs, Catalog catalog) { super(); this.wcs = wcs; this.catalog = catalog; this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wcs.getGeoServer().getGlobal().getResourceErrorHandling()); setNamespaceDeclarationEnabled(false); }
/** Creates a new WFSCapsTransformer object. */ public Wcs10CapsTransformer(GeoServer geoServer) { super(); this.geoServer = geoServer; this.wcs = geoServer.getService(WCSInfo.class); this.catalog = geoServer.getCatalog(); setNamespaceDeclarationEnabled(false); this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( geoServer.getGlobal().getResourceErrorHandling()); }
/** Creates a new WFSCapsTransformer object. */ public WCSCapsTransformer(GeoServer gs) { super(); this.wcs = gs.getService(WCSInfo.class); this.catalog = gs.getCatalog(); this.skipMisconfigured = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( gs.getGlobal().getResourceErrorHandling()); setNamespaceDeclarationEnabled(false); }
getWFS().getGeoServer().getGlobal().getResourceErrorHandling());
this.skipping = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wmsConfig.getGeoServer().getGlobal().getResourceErrorHandling());
this.skipping = ResourceErrorHandling.SKIP_MISCONFIGURED_LAYERS.equals( wmsConfig.getGeoServer().getGlobal().getResourceErrorHandling());