|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cfa.vo.iris.utils.HarvardNameResolver
public class HarvardNameResolver
This class represents the actual name resolver service used to convert a target name into a coordinate. We support simbad and ned and they each have a URL interface.
Method Summary | |
---|---|
static HarvardNameResolver |
getInstance()
|
boolean |
isIdentifierAmbiguous()
If resolver returned null, this tells caller whether the most recent call to resolve() returned an ambiguous answer. |
NameResolver.Position |
resolve(String service,
String identifier)
Convert identifier into coordinates from name resolver. |
NameResolver.Position |
resolveByNed(String identifier)
|
NameResolver.Position |
resolveBySimbad(String identifier)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static HarvardNameResolver getInstance()
public NameResolver.Position resolve(String service, String identifier) throws IOException
identifier
- client-requested identifier
ServiceNotAvailableException
- if the resolver produced unexpected
output or wasn't free to connnect to the service
IOException
public NameResolver.Position resolveBySimbad(String identifier) throws IOException
IOException
public NameResolver.Position resolveByNed(String identifier) throws IOException
IOException
public boolean isIdentifierAmbiguous()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |