edu.nrao.sss.util
Class SourceNameResolver
java.lang.Object
edu.nrao.sss.util.SourceNameResolver
public class SourceNameResolver
- extends Object
The SourceNameResolver encapsulates the networking and XML envolved in
making a source name lookup at the CDS and provides quick javabeans methods
for retreiving a particular bit of information about a source.
- Author:
- btruitt
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceNameResolver
public SourceNameResolver()
SourceNameResolver
public SourceNameResolver(String target)
throws SourceNotFoundException
- Does a name lookup at one of the sites in
serviceUrls
and
returns an object that has convenient java bean methods for accessing
properties of a source. The urls in the serviceUrls array are tried in
order (in the event that the service is down at the first site, the 2nd
is tried, etc.).
- Throws:
SourceNotFoundException
- if target
could not be found.
getErrors
public List<String> getErrors()
- Returns:
- a list of errors found trying to process our request.
getData
public Sesame getData()
lookup
public Sesame lookup(String target)
throws SourceNotFoundException
- Throws:
SourceNotFoundException
Copyright © 2009. All Rights Reserved.