You can use the DataStoreFinder to find additional kinds of data access (including shapefile).
This will check the available jars on your class path, and return the first one that can
work with the provided url. This example goes through each data store, geoserver actually
includes two datastores that can read shapefiles (one with indexing one without).
For your amusement we print out the parameters for the datastore used.
Parameters: url - DataStore for the provided URL throws: IOException - If connection could not be made |