public class DalQuery extends Object
| Constructor and Description | 
|---|
DalQuery(RegResource resource,
        RegCapabilityInterface capability,
        String serviceType,
        double raPos,
        double decPos,
        double size)
Constructs a DAL query based on a resource from a registry. 
 | 
DalQuery(String baseURL,
        String serviceType,
        double raPos,
        double decPos,
        double size,
        ContentCoding coding)
Constructs a DAL query based on a service URL. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addArgument(String name,
           String value)
Adds an argument to the query. 
 | 
String | 
doubleToString(double value)
Encodes a floating point value as a string for use in a DAL query. 
 | 
StarTable | 
execute(StarTableFactory tfact)
Executes this query synchronously, returning a StarTable which
 represents the results. 
 | 
static StarTable | 
executeQuery(URL qurl,
            StarTableFactory tfact,
            ContentCoding coding)
Submits a synchronous query to a URL and retrieves the result
 as a StarTable following standard DAL conventions. 
 | 
String | 
toString()  | 
public DalQuery(RegResource resource, RegCapabilityInterface capability, 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(String baseURL, String serviceType, double raPos, double decPos, double size, 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(String name, String value)
name - service argument namevalue - argument valuepublic StarTable execute(StarTableFactory tfact) throws IOException
tfact - factory which may be used to influence how the
           table is builtIOException - in absence of good datapublic String doubleToString(double value)
CgiQuery.formatDouble(double),
 which avoids exponential notation except for very large/small values.value - numeric valuepublic static StarTable executeQuery(URL qurl, StarTableFactory tfact, ContentCoding coding) throws IOException
qurl - query URLtfact - table factorycoding - encoding to use for communicationsIOExceptionCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.