WFS data store reports it can process file://... urls
-----------------------------------------------------
Key: GEOT-2311
URL: http://jira.codehaus.org/browse/GEOT-2311
Project: GeoTools
Issue Type: New Feature
Components: data wfs
Affects Versions: 2.5.3
Reporter: Andrea Aime
Assignee: Gabriel Roldán
Fix For: 2.5.4
Actually tested on trunk, but anyways, the WFS datastore does not handle any
url type, but only http and https as far as I know. canProcess should check
that. Passing a file:// url results in the following error during datastore
creation:
{code}
java.lang.ClassCastException: sun.net.www.protocol.file.FileURLConnection
cannot be cast to java.net.HttpURLConnection
at
org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.openConnection(SimpleHttpProtocol.java:106)
at
org.geotools.data.wfs.protocol.http.SimpleHttpProtocol.issueGet(SimpleHttpProtocol.java:84)
at
org.geotools.data.wfs.WFSDataStoreFactory.loadCapabilities(WFSDataStoreFactory.java:681)
at
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:348)
at
org.geotools.data.wfs.WFSDataStoreFactory.createDataStore(WFSDataStoreFactory.java:115)
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel