use of org.n52.janmayen.i18n.LocaleHelper in project arctic-sea by 52North.
the class AbstractGetCapabilitiesHandler method getAcceptLanguagesDomain.
private OwsDomain getAcceptLanguagesDomain() {
Set<Locale> availableLocales = serviceMetadataRepository.getAvailableLocales();
OwsPossibleValues possibleValues = new OwsAllowedValues(availableLocales.stream().map(LocaleHelper::encode).map(OwsValue::new));
return new OwsDomain(GetCapabilitiesParams.AcceptLanguages, possibleValues);
}
Aggregations