public ListStoredQueriesResponseType listStoredQueries(ListStoredQueriesType request) throws WFSException { return new ListStoredQueries(getServiceInfo(), getCatalog(), getStoredQueryProvider()) .run(request); }
protected void dcp(String serviceURL, boolean get, boolean post) { start("ows:DCP"); start("ows:HTTP"); if (get) { element("ows:Get", null, attributes(new String[] {"xlink:href", serviceURL})); } if (post) { element("ows:Post", null, attributes(new String[] {"xlink:href", serviceURL})); } end("ows:HTTP"); end("ows:DCP"); }
public void checkValidity( TransactionElement element, Map<QName, FeatureTypeInfo> featureTypeInfos) throws WFSTransactionException { if (!getInfo().getServiceLevel().getOps().contains(WFSInfo.Operation.TRANSACTION_INSERT)) { throw new WFSException(element, "Transaction INSERT support is not enabled"); } }
public void checkValidity(TransactionElement element, Map featureTypeInfos) throws WFSTransactionException { if (!getInfo().getServiceLevel().getOps().contains(WFSInfo.Operation.TRANSACTION_REPLACE)) { throw new WFSException(element, "Transaction REPLACE support is not enabled"); } if (featureTypeInfos.size() != 1) { throw new WFSException( element, "Transaction REPLACE must only specify features from a" + " single feature type"); } }
/** Encodes the GetFeature ows:Operation element. */ protected OperationMetadata getFeature() { String[] formats = getoutputFormatNames(); OperationMetadata operation = new OperationMetadata("GetFeature", true, true); operation .getParameters() .add(new DomainType("resultType", new String[] {"results", "hits"})); operation.getParameters().add(new DomainType("outputFormat", formats)); operation .getConstraints() .add(new DomainType("LocalTraverseXLinkScope", new String[] {"2"})); return operation; }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated modifiable */ public Object parse(ElementInstance instance, Node node, Object value) throws Exception { throw new WFSException("Circle is not supported", "InvalidParameterValue"); } }
public void releaseLock(String lockId) throws WFSException { new LockFeature(getServiceInfo(), getCatalog()).release(lockId); } }
public void releaseLock(String lockId) throws WFSException { new LockFeature(getServiceInfo(), catalog).release(lockId); }
@Override public ValueCollectionType getPropertyValue(GetPropertyValueType request) throws WFSException { return new GetPropertyValue(getServiceInfo(), getCatalog(), filterFactory).run(request); }
/** * WFS GetGmlObject operation. * * @param request The GetGmlObject request. * @return The gml object request. * @throws WFSException Any service exceptions. */ public Object getGmlObject(GetGmlObjectType request) throws WFSException { GetGmlObject getGmlObject = new GetGmlObject(getServiceInfo(), catalog); getGmlObject.setFilterFactory(filterFactory); return getGmlObject.run(request); }
protected WFSInfo createServiceFromScratch(GeoServer gs) { WFSInfoImpl wfs = new WFSInfoImpl(); wfs.setName("WFS"); wfs.setMaxFeatures(1000000); // gml2 addGml(wfs, WFSInfo.Version.V_10, GMLInfo.SrsNameStyle.XML, true); // gml3 addGml(wfs, WFSInfo.Version.V_11, GMLInfo.SrsNameStyle.URN, false); // gml3.2 addGml(wfs, WFSInfo.Version.V_20, SrsNameStyle.URN2, false); return wfs; }
public StoredQueryProvider getStoredQueryProvider() { return new StoredQueryProvider(getCatalog()); }
public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof GMLInfo)) return false; final GMLInfo other = (GMLInfo) obj; if (srsNameStyle == null) { if (other.getSrsNameStyle() != null) return false; } else if (!srsNameStyle.equals(other.getSrsNameStyle())) return false; return true; }
/** * Implement lockExists. * * @param lockID * @return true if lockID exists * @see org.geotools.data.Data#lockExists(java.lang.String) */ private boolean lockExists(String lockId) throws Exception { LockFeature lockFeature = new LockFeature(wfs, catalog); return lockFeature.exists(lockId); }
/** * Refresh lock by authorization * * <p>Should use your own transaction? * * @param lockID */ private void lockRefresh(String lockId) throws Exception { LockFeature lockFeature = new LockFeature(wfs, catalog); lockFeature.refresh(lockId, false); }
@Override public <T> T create(Class<T> clazz) { return (T) new WFSInfoImpl(); } }
public int compare(Object o1, Object o2) { TransactionPlugin t1 = (TransactionPlugin) o1; TransactionPlugin t2 = (TransactionPlugin) o2; // high priority number -> earlier in the sorting return t2.getPriority() - t1.getPriority(); } }
public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((srsNameStyle == null) ? 0 : srsNameStyle.hashCode()); return result; }
public void testSrsNameSyntax11() throws Exception { doTestSrsNameSyntax11(SrsNameStyle.URN, false); doTestSrsNameSyntax11(SrsNameStyle.URN2, true); doTestSrsNameSyntax11(SrsNameStyle.URL, true); doTestSrsNameSyntax11(SrsNameStyle.NORMAL, true); doTestSrsNameSyntax11(SrsNameStyle.XML, true); }