-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
passing errornous connection parameter to DataStoreFinder.getDataStore
doesn't cause the method to fail (which is ok, because it
Checks each available datasource implementation in turn and
returns the first one which claims to support the resource identified
by the params object.
[http://docs.geotools.org/latest/javadocs/org/geotools/data/DataStoreFinder.html#getDataStore%28java.util.Map%29]).
It would help to mention that the returned instance can fail
immediately when the specified connection parameters aren't valid and
cause a java.net.ConnectException, though. I'm currently validating
the connection with currentDataStore.getFeatureSource(String) in a
try-catch-block. It'd be great if the javadoc reader would get a hint
about that or a better practice.
- -Kalle
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJUhrecAAoJEGadKJ8eJ7ZGo8QIAKgbbD1IJkgJ6rQWMk7IAAZb
wUh5cHHdskPAMCqHVDIfdpXkZ5+F9GWmpQzCSxA9pANu+KaTpfuTdQznr3z79q9K
sZeQxBtGvhF+ZKeuj94cOVe7aWoRg7jf8aswBdbEtEq4uhcBgVFk42IxkloIWxIs
s/5Rs+IuDR3j3FZJlCj7dqgvarCcM7+xCKcKPUEuFqWtbGkf78TiFj3PcWloP3+T
w9gYCP8vysjh1KIALQiwrPCQh+HsQLbQN+88WkBfeokQkPeWWq5zqetvvkxvSBKL
piK7emUBf8VWq1zpGxRS7G2XhubkPfupplMuao/4MQynKMqfs9gQk3zykQVdo2U=
=fhiB
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel