Search in sources :

Example 1 with AcceptVersionsType

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;
}
Also used : GetCapabilitiesType(net.opengis.cat.csw.v_2_0_2.GetCapabilitiesType) AcceptVersionsType(net.opengis.ows.v_1_0_0.AcceptVersionsType)

Example 2 with AcceptVersionsType

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;
}
Also used : AcceptVersionsType(net.opengis.ows.x11.AcceptVersionsType)

Aggregations

GetCapabilitiesType (net.opengis.cat.csw.v_2_0_2.GetCapabilitiesType)1 AcceptVersionsType (net.opengis.ows.v_1_0_0.AcceptVersionsType)1 AcceptVersionsType (net.opengis.ows.x11.AcceptVersionsType)1