public class GeoServerRESTStructuredGridCoverageReaderManager extends GeoServerRESTAbstractManager
| Modifier and Type | Class and Description |
|---|---|
static class |
GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption
Option that tells GeoServer whether or not to configure all the coverages for a certain ImageMosaic.
|
gsBaseUrl, gspass, gsuser| Constructor and Description |
|---|
GeoServerRESTStructuredGridCoverageReaderManager(URL restURL,
String username,
String password)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
create(String workspace,
String coverageStore,
String path)
Create a new ImageMosaic with the provided configuration provided as a zip file.
|
boolean |
create(String workspace,
String coverageStore,
String path,
GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)
Create a new ImageMosaic with the provided configuration provided as a zip file.
|
RESTStructuredCoverageGranulesList |
getGranuleById(String workspace,
String coverageStore,
String coverage,
String id)
Get information about a granule for a structured coverage.
|
RESTStructuredCoverageIndexSchema |
getGranuleIndexSchema(String workspace,
String coverageStore,
String coverage)
Get information about the schema of the index for a structured coverage.
|
RESTStructuredCoverageGranulesList |
getGranules(String workspace,
String coverageStore,
String coverage)
Get information about all the granules for a coverage with optional filter and paging.
|
RESTStructuredCoverageGranulesList |
getGranules(String workspace,
String coverageStore,
String coverage,
String filter,
Integer offset,
Integer limit)
Get information about the granules for a coverage with optional filter and paging.
|
boolean |
harvestExternal(String workspace,
String coverageStore,
String format,
String path)
Create a store or harvest the coverage from the provided external path.
|
boolean |
removeGranuleById(String workspace,
String coverageStore,
String coverage,
String granuleId)
Remove a granule from a structured coverage by id.
|
boolean |
removeGranulesByCQL(String workspace,
String coverageStore,
String coverage,
String filter)
Remove granules from a structured coverage, by providing a CQL filter.
|
public GeoServerRESTStructuredGridCoverageReaderManager(URL restURL, String username, String password) throws IllegalArgumentException
restURL - GeoServer REST API endpointusername - GeoServer REST API authorized usernamepassword - GeoServer REST API password for the former usernameIllegalArgumentExceptionpublic boolean create(String workspace, String coverageStore, String path)
This call configures all the coverages contained in the ImageMosaic.
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorethe - absolute path to the file to uploadtrue if the call succeeds or false otherwise.public boolean create(String workspace, String coverageStore, String path, GeoServerRESTStructuredGridCoverageReaderManager.ConfigureCoveragesOption configureOpt)
With the options configure we can decide whether or not to configure or not the coverages contained in the ImageMosaic.
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorethe - absolute path to the file to uploadconfigureOpt - tells GeoServer whether to configure all coverages in this mosaic (ALL) or none of them (NONE).true if the call succeeds or false otherwise.public boolean harvestExternal(String workspace, String coverageStore, String format, String path)
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to uploadthe - absolute path to the file to uploadtrue if the call succeeds or false otherwise.public boolean removeGranulesByCQL(String workspace, String coverageStore, String coverage, String filter) throws UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coverage from which we are going to removefilter - the absolute path to the file to uploadnull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionpublic boolean removeGranuleById(String workspace, String coverageStore, String coverage, String granuleId)
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coverage from which we are going to removefilter - the absolute path to the file to uploadnull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionpublic RESTStructuredCoverageIndexSchema getGranuleIndexSchema(String workspace, String coverageStore, String coverage) throws MalformedURLException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to uploadnull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionpublic RESTStructuredCoverageGranulesList getGranules(String workspace, String coverageStore, String coverage) throws MalformedURLException, UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coveragenull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionpublic RESTStructuredCoverageGranulesList getGranules(String workspace, String coverageStore, String coverage, String filter, Integer offset, Integer limit) throws MalformedURLException, UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStorecoverage - the name of the target coveragefilter - the format of the file to upload, can be null to include all the granulesoffset - the start page, can be null or an integerlimit - the dimension of the page, can be null or a positive integernull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionpublic RESTStructuredCoverageGranulesList getGranuleById(String workspace, String coverageStore, String coverage, String id) throws MalformedURLException, UnsupportedEncodingException
workspace - the GeoServer workspacecoverageStore - the GeoServer coverageStoreformat - the format of the file to uploadthe - absolute path to the file to uploadid - the ID of the granule to get information fornull in case the call does not succeed, or an instance of RESTStructuredCoverageGranulesList.MalformedURLExceptionUnsupportedEncodingExceptionCopyright © 2007–2016 PDOK. All rights reserved.