protected void checkFeatureOfInterestIdentifier(String featureOfInterest, String parameterName) throws OwsExceptionReport { if (featureOfInterest == null || featureOfInterest.isEmpty()) { throw new MissingParameterValueException(parameterName); } if (getCache().getPublishedFeatureOfInterest().contains(featureOfInterest)) { return; } if (getCache().hasRelatedFeature(featureOfInterest) && getCache().isRelatedFeatureSampled(featureOfInterest)) { return; } throw new InvalidParameterValueException(parameterName, featureOfInterest); }
private void checkFeatureOfInterestAndRelatedFeatureIdentifier(List<String> featureIdentifiers, String parameterName) throws OwsExceptionReport { if (featureIdentifiers != null) { CompositeOwsException exceptions = new CompositeOwsException(); for (String featureOfInterest : featureIdentifiers) { try { if (!getCache().hasRelatedFeature(featureOfInterest)) { checkFeatureOfInterestIdentifier(featureOfInterest, parameterName); } } catch (OwsExceptionReport e) { exceptions.add(e); } } exceptions.throwIfNotEmpty(); } }
private void checkFeatureOfInterestAndRelatedFeatureIdentifier(List<String> featureIdentifiers, String parameterName) throws OwsExceptionReport { if (featureIdentifiers != null) { CompositeOwsException exceptions = new CompositeOwsException(); for (String featureOfInterest : featureIdentifiers) { try { if (!getCache().hasRelatedFeature(featureOfInterest)) { checkFeatureOfInterestIdentifier(featureOfInterest, parameterName); } } catch (OwsExceptionReport e) { exceptions.add(e); } } exceptions.throwIfNotEmpty(); } }