@Test public void testGetFilter() { FilterFactory ff = CommonFactoryFinder.getFilterFactory(); Filter f = ff.equals(ff.property("bar"), ff.literal("foo")); String actual = OskariWFS110Client.getFilter(f); String expected = "<ogc:Filter xmlns:xs=\"http: + "<ogc:PropertyIsEqualTo matchCase=\"true\">" + "<ogc:PropertyName>bar</ogc:PropertyName>" + "<ogc:Literal>foo</ogc:Literal>" + "</ogc:PropertyIsEqualTo>" + "</ogc:Filter>"; assertEquals(expected, actual); }
protected static String getFilter(Filter filter) { if (filter == null) { return null; } try { Encoder encoder = new Encoder(new org.geotools.filter.v1_1.OGCConfiguration()); encoder.setOmitXMLDeclaration(true); return encoder.encodeAsString(filter, org.geotools.filter.v1_1.OGC.Filter); } catch (IOException e) { throw new ServiceRuntimeException("Failed to encode filter!", e); } }
OskariWFS110Client { protected static String getFilter(Filter filter) { if (filter == null) { return null; } try { Encoder encoder = new Encoder(new org.geotools.filter.v1_1.OGCConfiguration()); encoder.setOmitXMLDeclaration(true); return encoder.encodeAsString(filter, org.geotools.filter.v1_1.OGC.Filter); } catch (IOException e) { throw new ServiceRuntimeException("Failed to encode filter!", e); } } }
OskariWFS110Client { protected static String getFilter(Filter filter) { if (filter == null) { return null; } try { Encoder encoder = new Encoder(new org.geotools.filter.v1_1.OGCConfiguration()); encoder.setOmitXMLDeclaration(true); return encoder.encodeAsString(filter, org.geotools.filter.v1_1.OGC.Filter); } catch (IOException e) { throw new ServiceRuntimeException("Failed to encode filter!", e); } } private  OskariWFS110Client(); }
OskariWFS110Client { protected static String getFilter(Filter filter) { if (filter == null) { return null; } try { Encoder encoder = new Encoder(new org.geotools.filter.v1_1.OGCConfiguration()); encoder.setOmitXMLDeclaration(true); return encoder.encodeAsString(filter, org.geotools.filter.v1_1.OGC.Filter); } catch (IOException e) { throw new ServiceRuntimeException("Failed to encode filter!", e); } } private  OskariWFS110Client(); static SimpleFeatureCollection getFeatures(OskariLayer layer,
            ReferencedEnvelope bbox, CoordinateReferenceSystem crs, Filter filter); }
OskariWFS110Client { protected static String getFilter(Filter filter) { if (filter == null) { return null; } try { Encoder encoder = new Encoder(new org.geotools.filter.v1_1.OGCConfiguration()); encoder.setOmitXMLDeclaration(true); return encoder.encodeAsString(filter, org.geotools.filter.v1_1.OGC.Filter); } catch (IOException e) { throw new ServiceRuntimeException("Failed to encode filter!", e); } } private  OskariWFS110Client(); static SimpleFeatureCollection getFeatures(OskariLayer layer,
            ReferencedEnvelope bbox, CoordinateReferenceSystem crs, Filter filter);  }