@Test public void testCreateGetFeatureRequest() throws IOException { GetFeature query = new GetFeatureQueryAdapter(new DefaultQuery( CUBEWERX_GOVUNITCE.FEATURETYPENAME), "GML2", "EPSG:4326", ResultType.RESULTS); RequestComponents getFeatureRequest = strategy.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = getFeatureRequest.getServerRequest(); ResultTypeType resultType = serverRequest.getResultType(); assertNull(resultType); Map<String, String> kvpParameters = getFeatureRequest.getKvpParameters(); assertNull(kvpParameters.get("RESULTTYPE")); }
@SuppressWarnings("nls") @Override public RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws IOException { RequestComponents parts = super.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = parts.getServerRequest(); serverRequest.setResultType(null); parts.setServerRequest(serverRequest); GetFeatureType nonResultTypeRequest = new CubeWerxGetFeatureType(); EMFUtils.copy(serverRequest, nonResultTypeRequest); nonResultTypeRequest.setResultType(null); parts.setServerRequest(nonResultTypeRequest); parts.getKvpParameters().remove("RESULTTYPE"); return parts; }
CubeWerxStrategy extends DefaultWFSStrategy { @SuppressWarnings("nls") @Override public RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws IOException { RequestComponents parts = super.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = parts.getServerRequest(); serverRequest.setResultType(null); parts.setServerRequest(serverRequest); GetFeatureType nonResultTypeRequest = new CubeWerxGetFeatureType(); EMFUtils.copy(serverRequest, nonResultTypeRequest); nonResultTypeRequest.setResultType(null); parts.setServerRequest(nonResultTypeRequest); parts.getKvpParameters().remove("RESULTTYPE"); return parts; } }
CubeWerxStrategy extends DefaultWFSStrategy { @SuppressWarnings("nls") @Override public RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws IOException { RequestComponents parts = super.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = parts.getServerRequest(); serverRequest.setResultType(null); parts.setServerRequest(serverRequest); GetFeatureType nonResultTypeRequest = new CubeWerxGetFeatureType(); EMFUtils.copy(serverRequest, nonResultTypeRequest); nonResultTypeRequest.setResultType(null); parts.setServerRequest(nonResultTypeRequest); parts.getKvpParameters().remove("RESULTTYPE"); return parts; }  }
CubeWerxStrategy extends DefaultWFSStrategy { @SuppressWarnings("nls") @Override public RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws IOException { RequestComponents parts = super.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = parts.getServerRequest(); serverRequest.setResultType(null); parts.setServerRequest(serverRequest); GetFeatureType nonResultTypeRequest = new CubeWerxGetFeatureType(); EMFUtils.copy(serverRequest, nonResultTypeRequest); nonResultTypeRequest.setResultType(null); parts.setServerRequest(nonResultTypeRequest); parts.getKvpParameters().remove("RESULTTYPE"); return parts; }  @SuppressWarnings("nls") @Override RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query); @Override Filter[] splitFilters(final Capabilities caps, final Filter queryFilter); }
CubeWerxStrategy extends DefaultWFSStrategy { @SuppressWarnings("nls") @Override public RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query) throws IOException { RequestComponents parts = super.createGetFeatureRequest(wfs, query); GetFeatureType serverRequest = parts.getServerRequest(); serverRequest.setResultType(null); parts.setServerRequest(serverRequest); GetFeatureType nonResultTypeRequest = new CubeWerxGetFeatureType(); EMFUtils.copy(serverRequest, nonResultTypeRequest); nonResultTypeRequest.setResultType(null); parts.setServerRequest(nonResultTypeRequest); parts.getKvpParameters().remove("RESULTTYPE"); return parts; }  @SuppressWarnings("nls") @Override RequestComponents createGetFeatureRequest(WFSProtocol wfs, GetFeature query); @Override Filter[] splitFilters(final Capabilities caps, final Filter queryFilter);  }