@Override public BigInteger getResolveTimeOut() { BigInteger seconds = eGet(adaptee, "traverseXlinkExpiry", BigInteger.class); return seconds == null ? null : BigInteger.valueOf(60).multiply(seconds); } }
@Override public List<Query> getQueries() { // TODO: instead of creating a new list we should wrap the existing on in case the // client // code needs to modify List<Query> list = new ArrayList<Query>(); for (Object o : getAdaptedQueries()) { list.add(new Query.WFS11((EObject) o)); } return list; }
@Override public Query createQuery() { return new Query.WFS11(((WfsFactory) getFactory()).createQueryType()); }
@Override public String getTraverseXlinkDepth() { return eGet(adaptee, "traverseXlinkDepth", String.class); }
@Override public List<Object> getAdaptedQueries() { return eGet(adaptee, "query", List.class); }
@Override public BigInteger getMaxFeatures() { return eGet(adaptee, "maxFeatures", BigInteger.class); }
@Override public void setMaxFeatures(BigInteger maxFeatures) { eSet(adaptee, "maxFeatures", maxFeatures); }
@Override public boolean isQueryTypeNamesUnset() { return EMFUtils.isUnset(eGet(adaptee, "query", List.class), "typeName"); }
@Override public FeatureCollectionResponse createResponse() { return new FeatureCollectionResponse.WFS11( ((WfsFactory) getFactory()).createFeatureCollectionType()); }
public static GetFeatureRequest adapt(Object request) { if (request instanceof GetFeatureType) { return new WFS11((EObject) request); } else if (request instanceof net.opengis.wfs20.GetFeatureType) { return new WFS20((EObject) request); } return null; }
/** * WFS GetFeature operation. * * @param request The get feature request. * @return A feature collection type instance. * @throws WFSException Any service exceptions. */ public FeatureCollectionResponse getFeature(GetFeatureType request) throws WFSException { GetFeature getFeature = new GetFeature(getServiceInfo(), catalog); getFeature.setFilterFactory(filterFactory); return getFeature.run(new GetFeatureRequest.WFS11(request)); }
@Override public LockFeatureRequest createLockRequest() { return new LockFeatureRequest.WFS11( ((WfsFactory) getFactory()).createLockFeatureType()); }
/** * Test {@link WFSException#init(Object)} for Exception with a WFS11 {@link * GetFeatureRequest}-Action. * * @see "https://osgeo-org.atlassian.net/browse/GEOS-5857" */ @Test public void testWFS11GetFeatureType() { WFSException tmpEx = new WFSException(new GetFeatureRequest.WFS11(getFeatureType1), "test"); // WFS 1.x: no locator, GetFeature type is a top-level request and provides a default // version (1.1.0) Assert.assertNull(tmpEx.getLocator()); }