Class GSShapefileDatastoreEncoder

    • Constructor Detail

      • GSShapefileDatastoreEncoder

        public GSShapefileDatastoreEncoder​(java.lang.String name,
                                           java.net.URL url)
        Create a "Shapefile" 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 "Shapefile" datastore encoder from an existing store read from server.
        Parameters:
        store - The existing store.
        Throws:
        java.lang.IllegalArgumentException - if store type or mandatory parameters are not valid
    • Method Detail

      • setUrl

        public void setUrl​(java.net.URL url)

        setUrl

        Parameters:
        url - a URL object.
      • getUrl

        public java.net.URL getUrl()

        getUrl

        Returns:
        a URL object.
      • setCharset

        public void setCharset​(java.nio.charset.Charset charset)

        setCharset

        Parameters:
        charset - a Charset object.
      • getCharset

        public java.nio.charset.Charset getCharset()

        getCharset

        Returns:
        a Charset object.
      • setCreateSpatialIndex

        public void setCreateSpatialIndex​(boolean createSpatialIndex)

        setCreateSpatialIndex

        Parameters:
        createSpatialIndex - a boolean.
      • getCreateSpatialIndex

        public boolean getCreateSpatialIndex()

        getCreateSpatialIndex

        Returns:
        a boolean.
      • setMemoryMappedBuffer

        public void setMemoryMappedBuffer​(boolean memoryMappedBuffer)

        setMemoryMappedBuffer

        Parameters:
        memoryMappedBuffer - a boolean.
      • getMemoryMappedBuffer

        public boolean getMemoryMappedBuffer()

        getMemoryMappedBuffer

        Returns:
        a boolean.
      • setCacheAndReuseMemoryMaps

        public void setCacheAndReuseMemoryMaps​(boolean cacheAndReuseMemoryMaps)

        setCacheAndReuseMemoryMaps

        Parameters:
        cacheAndReuseMemoryMaps - a boolean.
      • getCacheAndReuseMemoryMaps

        public boolean getCacheAndReuseMemoryMaps()

        getCacheAndReuseMemoryMaps

        Returns:
        a boolean.