@Test public void testHttpPoolingFalseWithHttp() throws IOException { params.put(WFSDataStoreFactory.USE_HTTP_CONNECTION_POOLING.key, false); params.put( WFSDataStoreFactory.URL.key, new URL("http: assertTrue(new WFSDataStoreFactory().getHttpClient(params) instanceof SimpleHttpClient); }
public HTTPClient getHttpClient(final Map<String, Serializable> params) throws IOException { final URL capabilitiesURL = (URL) URL.lookUp(params); final WFSConfig config = WFSConfig.fromParams(params); return config.isUseHttpConnectionPooling() && isHttp(capabilitiesURL) ? new MultithreadedHttpClient(config) : new SimpleHttpClient(); }
WFSDataStoreFactory extends WFSDataAccessFactory implements DataStoreFactorySpi { public HTTPClient getHttpClient(final Map<String, Serializable> params) throws IOException { final URL capabilitiesURL = (URL) URL.lookUp(params); final WFSConfig config = WFSConfig.fromParams(params); return config.isUseHttpConnectionPooling() && isHttp(capabilitiesURL) ? new MultithreadedHttpClient(config) : new SimpleHttpClient(); } }
WFSDataStoreFactory extends WFSDataAccessFactory implements DataStoreFactorySpi { public HTTPClient getHttpClient(final Map<String, Serializable> params) throws IOException { final URL capabilitiesURL = (URL) URL.lookUp(params); final WFSConfig config = WFSConfig.fromParams(params); return config.isUseHttpConnectionPooling() && isHttp(capabilitiesURL) ? new MultithreadedHttpClient(config) : new SimpleHttpClient(); }  }
WFSDataStoreFactory extends WFSDataAccessFactory implements DataStoreFactorySpi { public HTTPClient getHttpClient(final Map<String, Serializable> params) throws IOException { final URL capabilitiesURL = (URL) URL.lookUp(params); final WFSConfig config = WFSConfig.fromParams(params); return config.isUseHttpConnectionPooling() && isHttp(capabilitiesURL) ? new MultithreadedHttpClient(config) : new SimpleHttpClient(); }  @Override WFSDataStore createDataStore(final Map<String, Serializable> params); HTTPClient getHttpClient(final Map<String, Serializable> params); @Override DataStore createNewDataStore(final Map<String, Serializable> params); @Override String getDisplayName(); @Override String getDescription(); @Override boolean canProcess(@SuppressWarnings("rawtypes") final Map params); static URL createGetCapabilitiesRequest(URL host, Version version); static URL createGetCapabilitiesRequest(final URL host); boolean isAvailable(); }
WFSDataStoreFactory extends WFSDataAccessFactory implements DataStoreFactorySpi { public HTTPClient getHttpClient(final Map<String, Serializable> params) throws IOException { final URL capabilitiesURL = (URL) URL.lookUp(params); final WFSConfig config = WFSConfig.fromParams(params); return config.isUseHttpConnectionPooling() && isHttp(capabilitiesURL) ? new MultithreadedHttpClient(config) : new SimpleHttpClient(); }  @Override WFSDataStore createDataStore(final Map<String, Serializable> params); HTTPClient getHttpClient(final Map<String, Serializable> params); @Override DataStore createNewDataStore(final Map<String, Serializable> params); @Override String getDisplayName(); @Override String getDescription(); @Override boolean canProcess(@SuppressWarnings("rawtypes") final Map params); static URL createGetCapabilitiesRequest(URL host, Version version); static URL createGetCapabilitiesRequest(final URL host); boolean isAvailable();  }