it.geosolutions.geoserver.rest.encoder.datastore
Class GSShapefileDatastoreEncoder
java.lang.Object
it.geosolutions.geoserver.rest.encoder.utils.XmlElement
it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder
it.geosolutions.geoserver.rest.encoder.datastore.GSAbstractDatastoreEncoder
it.geosolutions.geoserver.rest.encoder.datastore.GSShapefileDatastoreEncoder
- Direct Known Subclasses:
- GSDirectoryOfShapefilesDatastoreEncoder
public class GSShapefileDatastoreEncoder
- extends GSAbstractDatastoreEncoder
Encoder for a datastore.
- Author:
- Oscar Fonts
Methods inherited from class it.geosolutions.geoserver.rest.encoder.GSAbstractStoreEncoder |
ensureValidName, ensureValidType, getDescription, getEnabled, getName, getStoreType, getType, setDescription, setEnabled, setName, setType |
GSShapefileDatastoreEncoder
public GSShapefileDatastoreEncoder(String name,
URL url)
- Create a datastore with default connection parameters,
given a store name and a url (the store location).
The following default connection parameters are set:
- enabled:
- charset:
- create spatial index:
- memory mapped buffer:
- cache and reuse memory maps:
- Parameters:
name
- New datastore nameurl
- The shapefile location in the server, relative to $GEOSERVER_DATA_DIR.
GSShapefileDatastoreEncoder
public GSShapefileDatastoreEncoder(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
setUrl
public void setUrl(URL url)
getUrl
public URL getUrl()
setCharset
public void setCharset(Charset charset)
getCharset
public Charset getCharset()
setCreateSpatialIndex
public void setCreateSpatialIndex(boolean createSpatialIndex)
getCreateSpatialIndex
public boolean getCreateSpatialIndex()
setMemoryMappedBuffer
public void setMemoryMappedBuffer(boolean memoryMappedBuffer)
getMemoryMappedBuffer
public boolean getMemoryMappedBuffer()
setCacheAndReuseMemoryMaps
public void setCacheAndReuseMemoryMaps(boolean cacheAndReuseMemoryMaps)
getCacheAndReuseMemoryMaps
public boolean getCacheAndReuseMemoryMaps()
getValidType
protected String getValidType()
- Description copied from class:
GSAbstractDatastoreEncoder
- The type of the implementing datastore.
- Specified by:
getValidType
in class GSAbstractDatastoreEncoder
- Returns:
Copyright © 2007-2013 GeoSolutions. All Rights Reserved.