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

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
Direct Known Subclasses:
GSDirectoryOfShapefilesDatastoreEncoder

public class GSShapefileDatastoreEncoder
extends GSAbstractDatastoreEncoder

Encoder for a datastore.

Author:
Oscar Fonts

Constructor Summary
GSShapefileDatastoreEncoder(RESTDataStore store)
          Create a datastore encoder from an existing store read from server.
GSShapefileDatastoreEncoder(String name, URL url)
          Create a datastore with default connection parameters, given a store name and a url (the store location).
 
Method Summary
 boolean getCacheAndReuseMemoryMaps()
           
 Charset getCharset()
           
 boolean getCreateSpatialIndex()
           
 boolean getMemoryMappedBuffer()
           
 URL getUrl()
           
protected  String getValidType()
          The type of the implementing datastore.
 void setCacheAndReuseMemoryMaps(boolean cacheAndReuseMemoryMaps)
           
 void setCharset(Charset charset)
           
 void setCreateSpatialIndex(boolean createSpatialIndex)
           
 void setMemoryMappedBuffer(boolean memoryMappedBuffer)
           
 void setUrl(URL url)
           
 
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

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:

Parameters:
name - New datastore name
url - 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
Method Detail

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.