@Test public void testCanProcess() { assertFalse(dsf.canProcess(params)); params.put(WSDataStoreFactory.GET_CONNECTION_URL.key, "http: assertFalse(dsf.canProcess(params)); params.put(WSDataStoreFactory.TEMPLATE_NAME.key, "request.ftl"); assertFalse(dsf.canProcess(params)); try { params.put(WSDataStoreFactory.TEMPLATE_DIRECTORY.key, new URL( "file:./src/test/resources/test-data")); } catch (MalformedURLException e) { fail(e.getMessage()); } assertFalse(dsf.canProcess(params)); try { params.put(WSDataStoreFactory.CAPABILITIES_FILE_LOCATION.key, new URL( "file:./src/test/resources/test-data/ws_capabilities.xml")); } catch (MalformedURLException e) { fail(e.getMessage()); } assertTrue(dsf.canProcess(params)); params.put(WSDataStoreFactory.TIMEOUT.key, "30000"); assertTrue(dsf.canProcess(params)); }
public boolean canProcess(final Map params) { if (params == null) { throw new NullPointerException("params"); } try { GET_CONNECTION_URL.lookUp(params); TEMPLATE_NAME.lookUp(params); TEMPLATE_DIRECTORY.lookUp(params); CAPABILITIES_FILE_LOCATION.lookUp(params); } catch (Exception e) { return false; } return true; }
WSDataStoreFactory extends AbstractDataStoreFactory { public boolean canProcess(final Map params) { if (params == null) { throw new NullPointerException("params"); } try { GET_CONNECTION_URL.lookUp(params); TEMPLATE_NAME.lookUp(params); TEMPLATE_DIRECTORY.lookUp(params); CAPABILITIES_FILE_LOCATION.lookUp(params); } catch (Exception e) { return false; } return true; } }
WSDataStoreFactory extends AbstractDataStoreFactory { public boolean canProcess(final Map params) { if (params == null) { throw new NullPointerException("params"); } try { GET_CONNECTION_URL.lookUp(params); TEMPLATE_NAME.lookUp(params); TEMPLATE_DIRECTORY.lookUp(params); CAPABILITIES_FILE_LOCATION.lookUp(params); } catch (Exception e) { return false; } return true; }  }
WSDataStoreFactory extends AbstractDataStoreFactory { public boolean canProcess(final Map params) { if (params == null) { throw new NullPointerException("params"); } try { GET_CONNECTION_URL.lookUp(params); TEMPLATE_NAME.lookUp(params); TEMPLATE_DIRECTORY.lookUp(params); CAPABILITIES_FILE_LOCATION.lookUp(params); } catch (Exception e) { return false; } return true; }  XmlDataStore createDataStore(final Map params); DataStore createNewDataStore(final Map params); String getDescription(); Param[] getParametersInfo(); boolean canProcess(final Map params); String getDisplayName(); boolean isAvailable(); }
WSDataStoreFactory extends AbstractDataStoreFactory { public boolean canProcess(final Map params) { if (params == null) { throw new NullPointerException("params"); } try { GET_CONNECTION_URL.lookUp(params); TEMPLATE_NAME.lookUp(params); TEMPLATE_DIRECTORY.lookUp(params); CAPABILITIES_FILE_LOCATION.lookUp(params); } catch (Exception e) { return false; } return true; }  XmlDataStore createDataStore(final Map params); DataStore createNewDataStore(final Map params); String getDescription(); Param[] getParametersInfo(); boolean canProcess(final Map params); String getDisplayName(); boolean isAvailable(); static final WSFactoryParam<URL> GET_CONNECTION_URL; static final WSFactoryParam<Integer> TIMEOUT; static final WSFactoryParam<Boolean> TRY_GZIP; static final WSFactoryParam<String> TEMPLATE_NAME; static final WSFactoryParam<URL> TEMPLATE_DIRECTORY; static final WSFactoryParam<URL> CAPABILITIES_FILE_LOCATION; }