Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: UDIG 1.3.2
-
Fix Version/s: UDIG 1.3.2
-
Component/s: catalog, metadata and search, file format
-
Labels:None
Description
In looking at persistent properties for GeoResources I needed to check if a services.getStatus() == Status.CONNECTED.
AbstractRasterService however would not play ball ![]()
The following implementation of getStatus() did the trick:
public Status getStatus() {
if( reader != null ){
return Status.CONNECTED;
}
else if (message != null ){
return Status.BROKEN;
}
else {
return Status.NOTCONNECTED;
}
}