protected String checkSoapAction(String soapAction, List<SoapHeader> soapHeaders) { if (soapAction != null && !soapAction.isEmpty()) { return soapAction; } else if (CollectionHelper.isEmpty(soapHeaders)) { for (SoapHeader soapHeader : soapHeaders) { if (WsaConstants.NS_WSA.equals(soapHeader.getNamespace()) && soapHeader instanceof WsaActionHeader) { return ((WsaActionHeader)soapHeader).getValue(); } } } return null; } }
public List<GeographicalName> getAdminUnits() { if (CollectionHelper.isEmpty(adminUnits)) { addAdminUnit(new GeographicalName()); } return Collections.unmodifiableList(adminUnits); }
public List<Spelling> getSpelling() { if (CollectionHelper.isEmpty(spelling)) { addSpelling(new Spelling()); } return Collections.unmodifiableList(spelling); }
private void setParameterValue(DomainType domainType, String name, Collection<OwsParameterValue> values) throws OwsExceptionReport { domainType.setName(name); if (CollectionHelper.isEmpty(values)) { domainType.addNewNoValues(); } else { for (OwsParameterValue value : values) { if (value instanceof OwsParameterValuePossibleValues) { setParamList(domainType, (OwsParameterValuePossibleValues) value); } else if (value instanceof OwsParameterValueRange) { setParamRange(domainType, (OwsParameterValueRange) value); } else if (value instanceof OwsParameterDataType) { setParamDataType(domainType, (OwsParameterDataType) value); } } } }
@Override public void updateCacheOfferings(WritableContentCache cache, Collection<String> offeringsNeedingUpdate) throws OwsExceptionReport { checkCacheNotNull(cache); if (CollectionHelper.isEmpty(offeringsNeedingUpdate)) { return; } List<OwsExceptionReport> errors = CollectionHelper.synchronizedList(); Session session = getSession(); OfferingCacheUpdate update = new OfferingCacheUpdate(getCacheThreadCount(), offeringsNeedingUpdate); update.setCache(cache); update.setErrors(errors); update.setSession(session); LOGGER.info("Starting offering cache update for {} offering(s)", offeringsNeedingUpdate.size()); long cacheUpdateStartTime = System.currentTimeMillis(); try { update.execute(); } catch (Exception e) { LOGGER.error("Error while updating ContentCache!", e); errors.add(new NoApplicableCodeException().causedBy(e).withMessage("Error while updating ContentCache!")); } finally { returnSession(session); } logCacheLoadTime(cacheUpdateStartTime); if (!errors.isEmpty()) { throw new CompositeOwsException(errors); } }
addParentChildRestriction(c); if (isEmpty(featureIdentifiers)) { return null; // because no features where found regarding the
if (CollectionHelper.isEmpty(series)) { return null; } else {
List<SpatialFilter> spatialFilters = new ArrayList<SpatialFilter>(1); List<String> splittedParameterValues = Arrays.asList(parameterValues.split(",")); if (CollectionHelper.isEmpty(splittedParameterValues)) { throw new MissingParameterValueException(parameterName);
if (CollectionHelper.isEmpty(splittedParameterValues)) { throw new MissingParameterValueException(parameterName);
final Map<String, List<OfferingExtension>> extensions = getSettingsManager().getActiveOfferingExtensions(); if (CollectionHelper.isEmpty(offerings)) {
session = sessionHolder.getSession(); if (HibernateStreamingConfiguration.getInstance().isForceDatasourceStreaming() && CollectionHelper.isEmpty(sosRequest.getFirstLatestTemporalFilter())) {
if (CollectionHelper.isEmpty(resultModels)) { throw new NoApplicableCodeException() .withMessage(