|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.ConeSearch
public class ConeSearch
Encapsulates the mechanics of a standard cone search web service. The cone search service definition is taken to be supplied by the document at http://us-vo.org/pubs/files/conesearch.html.
Constructor Summary | |
---|---|
ConeSearch(RegResource resource,
RegCapabilityInterface capability)
Constructs a new ConeSearch from a CONE-type resource. |
|
ConeSearch(String serviceUrl)
Constructs a new ConeSearch from its service URL. |
Method Summary | |
---|---|
URL |
getSearchURL(double ra,
double dec,
double sr,
int verb)
Returns a cone search CGI URL for this service. |
URL |
getServiceURL()
Returns the service URL for this service. |
StarTable |
performSearch(double ra,
double dec,
double sr,
int verb,
StarTableFactory tfact)
Synchronously executes a cone search request. |
void |
performSearch(double ra,
double dec,
double sr,
int verb,
TableSink sink)
Asynchronously executes a cone search request, feeding the resulting table to a TableSink. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConeSearch(String serviceUrl)
serviceUrl
- base URL for cone search
IllegalArgumentException
- if the service URL is unsuitablepublic ConeSearch(RegResource resource, RegCapabilityInterface capability)
resource
- resource from registrycapability
- cone search capability interface
IllegalArgumentException
- if the service URL is unsuitableMethod Detail |
---|
public void performSearch(double ra, double dec, double sr, int verb, TableSink sink) throws IOException
ra
- J2000 right ascension in decimal degreesdec
- J2000 declination in decimal degreessr
- search radius in decimal degreesverb
- verbosity level - 1, 2 or 3 for increasing verbosity,
other values give defaultsink
- table destination
IOException
public StarTable performSearch(double ra, double dec, double sr, int verb, StarTableFactory tfact) throws IOException
ra
- J2000 right ascension in decimal degreesdec
- J2000 declination in decimal degreessr
- search radius in decimal degreesverb
- verbosity level - 1, 2 or 3 for increasing verbosity,
other values give default
IOException
public URL getSearchURL(double ra, double dec, double sr, int verb)
ra
- J2000 right ascension in decimal degreesdec
- J2000 declination in decimal degreessr
- search radius in decimal degreesverb
- verbosity level - 1, 2 or 3 for increasing verbosity,
other values give default
public URL getServiceURL()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |