Package org.geotools.coverage.io
Class CoverageResponse
- Object
-
- CoverageResponse
-
public class CoverageResponse extends Object
- Author:
- Simone Giannecchini, GeoSolutions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverageResponse.Status
-
Constructor Summary
Constructors Constructor Description CoverageResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addException(Exception exception)
void
addExceptions(Collection<Exception> exceptions)
void
addResult(GridCoverage grid)
void
addResults(Collection<GridCoverage> results)
Collection<Exception>
getExceptions()
String
getHandle()
The handle attribute is included to allow a client to associate a mnemonic name to the Query request.CoverageRequest
getRequest()
Collection<? extends Coverage>
getResults(ProgressListener listener)
Returns the Coverages available with this coverage response.CoverageResponse.Status
getStatus()
Get the status of this coverage response.void
setHandle(String handle)
void
setRequest(CoverageRequest coverageRequest)
void
setStatus(CoverageResponse.Status status)
-
-
-
Method Detail
-
getExceptions
public Collection<Exception> getExceptions()
-
addExceptions
public void addExceptions(Collection<Exception> exceptions)
-
addException
public void addException(Exception exception)
-
getHandle
public String getHandle()
The handle attribute is included to allow a client to associate a mnemonic name to the Query request. The purpose of the handle attribute is to provide an error handling mechanism for locating a statement that might fail.- Returns:
- the mnemonic name of the query request.
-
setHandle
public void setHandle(String handle)
-
getRequest
public CoverageRequest getRequest()
-
setRequest
public void setRequest(CoverageRequest coverageRequest)
-
getResults
public Collection<? extends Coverage> getResults(ProgressListener listener)
Returns the Coverages available with this coverage response.- Returns:
- a collection of coverages.
-
addResults
public void addResults(Collection<GridCoverage> results)
-
addResult
public void addResult(GridCoverage grid)
-
getStatus
public CoverageResponse.Status getStatus()
Get the status of this coverage response. It should always be checked before assuming any data is available.- Returns:
- the status of this coverage response.
-
setStatus
public void setStatus(CoverageResponse.Status status)
-
-