it.geosolutions.geoserver.rest.encoder.datastore
Class GSDirectoryOfShapefilesDatastoreEncoder

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
          extended by it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
              extended by it.geosolutions.geoserver.rest.encoder.datastore.GSAbstractDatastoreEncoder
                  extended by it.geosolutions.geoserver.rest.encoder.datastore.GSShapefileDatastoreEncoder
                      extended by it.geosolutions.geoserver.rest.encoder.datastore.GSDirectoryOfShapefilesDatastoreEncoder

public class GSDirectoryOfShapefilesDatastoreEncoder
extends GSShapefileDatastoreEncoder

Encoder for a datastore.

Author:
Oscar Fonts

Constructor Summary
GSDirectoryOfShapefilesDatastoreEncoder(RESTDataStore store)
          Create a datastore encoder from an existing store read from server.
GSDirectoryOfShapefilesDatastoreEncoder(String name, URL url)
          Create a datastore with default connection parameters, given a store name and a url (the store location).
 
Method Summary
protected  String getValidType()
          The type of the implementing datastore.
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.datastore.GSShapefileDatastoreEncoder
getCacheAndReuseMemoryMaps, getCharset, getCreateSpatialIndex, getMemoryMappedBuffer, getUrl, setCacheAndReuseMemoryMaps, setCharset, setCreateSpatialIndex, setMemoryMappedBuffer, setUrl
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
ensureValidName, ensureValidType, getDescription, getEnabled, getName, getStoreType, getType, setDescription, setEnabled, setName, setType
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GSDirectoryOfShapefilesDatastoreEncoder

public GSDirectoryOfShapefilesDatastoreEncoder(String name,
                                               URL url)
Create a datastore with default connection parameters, given a store name and a url (the store location).

Parameters:
name - New datastore name
url - The shapefile location in the server, relative to $GEOSERVER_DATA_DIR.

GSDirectoryOfShapefilesDatastoreEncoder

public GSDirectoryOfShapefilesDatastoreEncoder(RESTDataStore store)
Create a datastore encoder from an existing store read from server.

Parameters:
store - The existing store.
Throws:
IllegalArgumentException - if store type or mandatory parameters are not valid
Method Detail

getValidType

protected String getValidType()
Description copied from class: GSAbstractDatastoreEncoder
The type of the implementing datastore.

Overrides:
getValidType in class GSShapefileDatastoreEncoder
Returns:


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.