public class DalQuery
extends java.lang.Object
Constructor | Description |
---|---|
DalQuery(java.lang.String baseURL,
java.lang.String serviceType,
double raPos,
double decPos,
double size,
uk.ac.starlink.util.ContentCoding coding) |
Constructs a DAL query based on a service URL.
|
DalQuery(RegResource resource,
RegCapabilityInterface capability,
java.lang.String serviceType,
double raPos,
double decPos,
double size) |
Constructs a DAL query based on a resource from a registry.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addArgument(java.lang.String name,
java.lang.String value) |
Adds an argument to the query.
|
java.lang.String |
doubleToString(double value) |
Encodes a floating point value as a string for use in a DAL query.
|
uk.ac.starlink.table.StarTable |
execute(uk.ac.starlink.table.StarTableFactory tfact) |
Executes this query synchronously, returning a StarTable which
represents the results.
|
java.lang.String |
toString() |
public DalQuery(RegResource resource, RegCapabilityInterface capability, java.lang.String serviceType, double raPos, double decPos, double size)
resource
- resource describing the DAL servicecapability
- DAL capability from resourceserviceType
- short name for service type; informative,
used for error messages etcraPos
- right ascension of ROI center in degreesdecPos
- declination of ROI center in degreessize
- ROI size in degreespublic DalQuery(java.lang.String baseURL, java.lang.String serviceType, double raPos, double decPos, double size, uk.ac.starlink.util.ContentCoding coding)
baseURL
- URL forming basis of CGI query for the DAL serviceserviceType
- short name for service type; informative,
used for error messages etcraPos
- right ascension of ROI center in degreesdecPos
- declination of ROI center in degreessize
- size in degreescoding
- controls HTTP-level byte-stream compressionpublic void addArgument(java.lang.String name, java.lang.String value)
name
- service argument namevalue
- argument valuepublic uk.ac.starlink.table.StarTable execute(uk.ac.starlink.table.StarTableFactory tfact) throws java.io.IOException
tfact
- factory which may be used to influence how the
table is builtjava.io.IOException
- in absence of good datapublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String doubleToString(double value)
CgiQuery.formatDouble(double)
,
which avoids exponential notation except for very large/small values.value
- numeric valueCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.