Class GeoServerRESTStructuredGridCoverageReaderManager
- java.lang.Object
-
- it.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager
-
- it.geosolutions.geoserver.rest.manager.GeoServerRESTStructuredGridCoverageReaderManager
-
public class GeoServerRESTStructuredGridCoverageReaderManager extends GeoServerRESTAbstractManager
Manage GeoTools StructuredGridCoverageReader. It allows to create a store from a file or harvest the coverages contained in a file, to delete granules from an existing coverage and eventually to get information about the granules inside a StructuredGridCoverageReader.- Version:
- $Id: $
- Author:
- Simone Giannecchini, GeoSolutions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOptionOption that tells GeoServer whether or not to configure all the coverages for a certain ImageMosaic.
-
Field Summary
-
Fields inherited from class it.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager
gsBaseUrl, gspass, gsuser
-
-
Constructor Summary
Constructors Constructor Description GeoServerRESTStructuredGridCoverageReaderManager(java.net.URL restURL, java.lang.String username, java.lang.String password)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancreate(java.lang.String workspace, java.lang.String coverageStore, java.lang.String path)Create a new ImageMosaic with the provided configuration provided as a zip file.booleancreate(java.lang.String workspace, java.lang.String coverageStore, java.lang.String path, GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)Create a new ImageMosaic with the provided configuration provided as a zip file.RESTStructuredCoverageGranulesListgetGranuleById(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String id)Get information about a granule for a structured coverage.RESTStructuredCoverageIndexSchemagetGranuleIndexSchema(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage)Get information about the schema of the index for a structured coverage.RESTStructuredCoverageGranulesListgetGranules(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage)Get information about all the granules for a coverage with optional filter and paging.RESTStructuredCoverageGranulesListgetGranules(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String filter, java.lang.Integer offset, java.lang.Integer limit)Get information about the granules for a coverage with optional filter and paging.booleanharvestExternal(java.lang.String workspace, java.lang.String coverageStore, java.lang.String format, java.lang.String path)Create a store or harvest the coverage from the provided external path.booleanremoveGranuleById(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String granuleId)Remove a granule from a structured coverage by id.booleanremoveGranulesByCQL(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String filter)Remove granules from a structured coverage, by providing a CQL filter.
-
-
-
Constructor Detail
-
GeoServerRESTStructuredGridCoverageReaderManager
public GeoServerRESTStructuredGridCoverageReaderManager(java.net.URL restURL, java.lang.String username, java.lang.String password) throws java.lang.IllegalArgumentExceptionDefault constructor.- Parameters:
restURL- GeoServer REST API endpointusername- GeoServer REST API authorized usernamepassword- GeoServer REST API password for the former username- Throws:
java.lang.IllegalArgumentException- if any.
-
-
Method Detail
-
create
public boolean create(java.lang.String workspace, java.lang.String coverageStore, java.lang.String path)Create a new ImageMosaic with the provided configuration provided as a zip file.This call configures all the coverages contained in the ImageMosaic.
- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorepath- the absolute path to the file to upload- Returns:
trueif the call succeeds orfalseotherwise.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
create
public boolean create(java.lang.String workspace, java.lang.String coverageStore, java.lang.String path, GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)Create a new ImageMosaic with the provided configuration provided as a zip file.With the options configure we can decide whether or not to configure or not the coverages contained in the ImageMosaic.
- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorepath- the absolute path to the file to uploadconfigureOpt- tells GeoServer whether to configure all coverages in this mosaic (ALL) or none of them (NONE).- Returns:
trueif the call succeeds orfalseotherwise.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
harvestExternal
public boolean harvestExternal(java.lang.String workspace, java.lang.String coverageStore, java.lang.String format, java.lang.String path)Create a store or harvest the coverage from the provided external path.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStoreformat- the format of the file to uploadpath- the absolute path to the file to upload- Returns:
trueif the call succeeds orfalseotherwise.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
removeGranulesByCQL
public boolean removeGranulesByCQL(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String filter) throws java.io.UnsupportedEncodingExceptionRemove granules from a structured coverage, by providing a CQL filter.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorecoverageStore- the GeoServer coverageStorecoverage- the name of the target coverage from which we are going to removefilter- the absolute path to the file to upload- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Throws:
java.io.UnsupportedEncodingException- if any.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
removeGranuleById
public boolean removeGranuleById(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String granuleId)Remove a granule from a structured coverage by id.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorecoverageStore- the GeoServer coverageStorecoverage- the name of the target coverage from which we are going to removegranuleId- aStringobject.- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
getGranuleIndexSchema
public RESTStructuredCoverageIndexSchema getGranuleIndexSchema(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage)
Get information about the schema of the index for a structured coverage.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorecoverageStore- the GeoServer coverageStorecoverage- the format of the file to upload- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
getGranules
public RESTStructuredCoverageGranulesList getGranules(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage) throws java.io.UnsupportedEncodingException
Get information about all the granules for a coverage with optional filter and paging.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorecoverageStore- the GeoServer coverageStorecoverage- the name of the target coverage- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Throws:
java.io.UnsupportedEncodingException- if any.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
getGranules
public RESTStructuredCoverageGranulesList getGranules(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String filter, java.lang.Integer offset, java.lang.Integer limit) throws java.io.UnsupportedEncodingException
Get information about the granules for a coverage with optional filter and paging.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStorecoverageStore- the GeoServer coverageStorecoverage- the name of the target coveragefilter- the format of the file to upload, can benullto include all the granulesoffset- the start page, can benullor an integerlimit- the dimension of the page, can benullor a positive integer- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Throws:
java.io.UnsupportedEncodingException- if any.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
getGranuleById
public RESTStructuredCoverageGranulesList getGranuleById(java.lang.String workspace, java.lang.String coverageStore, java.lang.String coverage, java.lang.String id)
Get information about a granule for a structured coverage.- Parameters:
workspace- the GeoServer workspacecoverageStore- the GeoServer coverageStoreid- the ID of the granule to get information forcoverage- aStringobject.- Returns:
nullin case the call does not succeed, or an instance ofRESTStructuredCoverageGranulesList.- Since:
- geoserver-2.4.0, geoserver-mng-1.6.0
-
-