Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[udig-devel] [jira] (UDIG-1870) Raster Services do not show up as Connected

Jody Garnett created UDIG-1870:
----------------------------------

             Summary: Raster Services do not show up as Connected
                 Key: UDIG-1870
                 URL: https://jira.codehaus.org/browse/UDIG-1870
             Project: uDIG
          Issue Type: Improvement
          Components: catalog, metadata and search, file format
    Affects Versions: UDIG 1.3.2
            Reporter: Jody Garnett
            Assignee: Jody Garnett
            Priority: Minor


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:
{code}
    public Status getStatus() {
        if( reader != null ){
            return Status.CONNECTED;
        }
        else if (message != null ){
            return Status.BROKEN;
        }
        else {
            return Status.NOTCONNECTED;
        }
    }
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Back to the top