use of net.opengis.ows.x11.ServiceProviderDocument.ServiceProvider in project arctic-sea by 52North.
the class OwsEncoderv110 method encodeServiceProvider.
private ServiceProvider encodeServiceProvider(OwsServiceProvider osp) {
/* TODO check for required fields and fail on missing ones */
ServiceProvider serviceProvider = ServiceProvider.Factory.newInstance();
serviceProvider.setProviderName(osp.getProviderName());
osp.getProviderSite().ifPresent(x -> encodeOnlineResource(x, serviceProvider.addNewProviderSite()));
encodeOwsResponsibleParty(osp.getServiceContact(), serviceProvider.addNewServiceContact());
return serviceProvider;
}
Aggregations