use of net.opengis.ows.x11.AcceptVersionsType in project ddf by codice.
the class TestCswEndpoint method createDefaultGetCapabilitiesType.
/**
* Creates default GetCapabilities POST request, with no sections specified
*
* @return Vanilla GetCapabilitiesType object
*/
private GetCapabilitiesType createDefaultGetCapabilitiesType() {
GetCapabilitiesType gct = new GetCapabilitiesType();
gct.setService(CswConstants.CSW);
AcceptVersionsType avt = new AcceptVersionsType();
avt.setVersion(CswEndpoint.SERVICE_TYPE_VERSION);
gct.setAcceptVersions(avt);
return gct;
}
use of net.opengis.ows.x11.AcceptVersionsType in project arctic-sea by 52North.
the class OwsEncoderv110 method encodeAcceptVersions.
private AcceptVersionsType encodeAcceptVersions(OwsAcceptVersions acceptVersions) {
AcceptVersionsType avt = AcceptVersionsType.Factory.newInstance(getXmlOptions());
acceptVersions.getAcceptVersions().forEach(avt::addVersion);
return avt;
}
Aggregations