@Test public void testGetFinalURLPost() throws IOException, ServiceException { WFSConfig config = new WFSConfig(); config.preferredMethod = PreferredHttpMethod.HTTP_POST; WFSClient client = newClient("GeoServer_2.2.x/1.0.0/GetCapabilities.xml", config); WFSRequest request = client.createDescribeFeatureTypeRequest(); URL url = request.getFinalURL(); String query = url.getQuery(); if (query != null && query.contains("=")) { Assert.fail("POST-Request should not contain Query String in URL"); } }
@Override public URL getFinalURL() { if (requiresPost()) { return super.getFinalURL(); } URL finalURL = strategy.buildUrlGET(this); return finalURL; }
WFSRequest extends AbstractRequest implements Request { @Override public URL getFinalURL() { if (requiresPost()) { return super.getFinalURL(); } URL finalURL = strategy.buildUrlGET(this); return finalURL; } }
WFSRequest extends AbstractRequest implements Request { @Override public URL getFinalURL() { if (requiresPost()) { return super.getFinalURL(); } URL finalURL = strategy.buildUrlGET(this); return finalURL; } WFSRequest(
            final WFSOperationType operation, final WFSConfig config, final WFSStrategy strategy); }
WFSRequest extends AbstractRequest implements Request { @Override public URL getFinalURL() { if (requiresPost()) { return super.getFinalURL(); } URL finalURL = strategy.buildUrlGET(this); return finalURL; } WFSRequest(
            final WFSOperationType operation, final WFSConfig config, final WFSStrategy strategy); String getOutputFormat(); String getHandle(); void setHandle(String handle); void setOutputFormat(String outputFormat); void setTypeName(QName typeName); QName getTypeName(); WFSStrategy getStrategy(); WFSOperationType getOperation(); @Override boolean requiresPost(); @Override URL getFinalURL(); @Override String getPostContentType(); @Override void performPostOutput(OutputStream outputStream); @Override WFSResponse createResponse(HTTPResponse response); @Override String toString(); }
WFSRequest extends AbstractRequest implements Request { @Override public URL getFinalURL() { if (requiresPost()) { return super.getFinalURL(); } URL finalURL = strategy.buildUrlGET(this); return finalURL; } WFSRequest(
            final WFSOperationType operation, final WFSConfig config, final WFSStrategy strategy); String getOutputFormat(); String getHandle(); void setHandle(String handle); void setOutputFormat(String outputFormat); void setTypeName(QName typeName); QName getTypeName(); WFSStrategy getStrategy(); WFSOperationType getOperation(); @Override boolean requiresPost(); @Override URL getFinalURL(); @Override String getPostContentType(); @Override void performPostOutput(OutputStream outputStream); @Override WFSResponse createResponse(HTTPResponse response); @Override String toString();  }