
public class RestfulLocationSource extends Object implements LocationSource
| Constructor and Description |
|---|
RestfulLocationSource(URL restfulUrl,
Set<String> enabled)
Reads the data from the RESTful server and creates the
Location instances. |
| Modifier and Type | Method and Description |
|---|---|
List<Location> |
getLocations()
Creates new instances of
Location based on some source of data. |
public RestfulLocationSource(URL restfulUrl, Set<String> enabled) throws IOException
Location instances.restfulUrl - the URL for the server;enabled - the names of the locations that are presently enabled.IOException - if the data can't be obtained or parsed.public final List<Location> getLocations()
LocationSourceLocation based on some source of data.getLocations in interface LocationSourceCopyright © 2021 LSST. All rights reserved.