Search in sources :

Example 1 with ServiceProvider

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;
}
Also used : OwsServiceProvider(org.n52.shetland.ogc.ows.OwsServiceProvider) ServiceProvider(net.opengis.ows.x11.ServiceProviderDocument.ServiceProvider)

Aggregations

ServiceProvider (net.opengis.ows.x11.ServiceProviderDocument.ServiceProvider)1 OwsServiceProvider (org.n52.shetland.ogc.ows.OwsServiceProvider)1