public abstract class VotLintTapRunner extends TapRunner
| Modifier and Type | Field | Description |
|---|---|---|
static uk.ac.starlink.table.ValueInfo |
OVERFLOW_INFO |
Result table parameter set if table was marked overflowed.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
VotLintTapRunner(java.lang.String name,
boolean doChecks) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static VotLintTapRunner |
createAsyncRunner(long pollMillis,
boolean doChecks) |
Returns a new instance which makes asynchronous queries.
|
static VotLintTapRunner |
createGetSyncRunner(boolean doChecks) |
Returns a new instance which uses HTTP GET to make synchronous queries.
|
static VotLintTapRunner |
createPostSyncRunner(boolean doChecks) |
Returns a new instance which uses HTTP POST to make synchronous queries.
|
protected uk.ac.starlink.table.StarTable |
executeQuery(Reporter reporter,
uk.ac.starlink.vo.TapQuery tq) |
Executes a TAP query, performing reporting as appropriate.
|
protected abstract java.net.URLConnection |
getResultConnection(Reporter reporter,
uk.ac.starlink.vo.TapQuery tq) |
Execute a TAP query and return a URL connection giving its result.
|
uk.ac.starlink.votable.VOElement |
getResultsResourceElement(Reporter reporter,
uk.ac.starlink.votable.VODocument doc) |
Returns the RESOURCE element marked with type="results" from a given
VODocument, or the best guess at it.
|
boolean |
isOverflow(uk.ac.starlink.table.StarTable table) |
Indicates if the given table, which must have been retrieved from
this object's
readResultVOTable(uk.ac.starlink.ttools.taplint.Reporter, uk.ac.starlink.votable.VODocument) method, was marked as
an overflow result. |
uk.ac.starlink.votable.VODocument |
readResultDocument(Reporter reporter,
java.io.InputStream baseIn) |
Reads a TAP result VODocument from an input stream, checking it and
reporting messages as appropriate.
|
java.io.InputStream |
readResultInputStream(Reporter reporter,
uk.ac.starlink.vo.TapQuery tq) |
Returns an input stream which should containing the result VOTable
from a TAP query, performing checks and making reports as appropriate
on the way.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattemptGetResultTable, getDescription, getResultTable, reportSummarypublic static uk.ac.starlink.table.ValueInfo OVERFLOW_INFO
protected VotLintTapRunner(java.lang.String name,
boolean doChecks)
name - name for this instancedoChecks - true to perform various checks on the result VOTable
(including linting) and report them, false to be
mostly silent and only report serious errorspublic boolean isOverflow(uk.ac.starlink.table.StarTable table)
readResultVOTable(uk.ac.starlink.ttools.taplint.Reporter, uk.ac.starlink.votable.VODocument) method, was marked as
an overflow result.table - TAP result table read by this objectprotected abstract java.net.URLConnection getResultConnection(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) throws java.io.IOException
reporter - validation message destinationtq - queryjava.io.IOExceptionprotected uk.ac.starlink.table.StarTable executeQuery(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) throws java.io.IOException, org.xml.sax.SAXException
TapRunnerexecuteQuery in class TapRunnerreporter - validation message destinationtq - query to executejava.io.IOExceptionorg.xml.sax.SAXExceptionpublic java.io.InputStream readResultInputStream(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) throws java.io.IOException, org.xml.sax.SAXException
reporter - validation message destinationtq - queryjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic uk.ac.starlink.votable.VODocument readResultDocument(Reporter reporter, java.io.InputStream baseIn) throws java.io.IOException, org.xml.sax.SAXException
reporter - validation message destinationbaseIn - VOTable input streamjava.io.IOExceptionorg.xml.sax.SAXExceptionpublic uk.ac.starlink.votable.VOElement getResultsResourceElement(Reporter reporter, uk.ac.starlink.votable.VODocument doc) throws java.io.IOException
reporter - validation message destinationdoc - TAP result DOMjava.io.IOExceptionpublic static VotLintTapRunner createPostSyncRunner(boolean doChecks)
doChecks - true for detailed VOTable checkingpublic static VotLintTapRunner createGetSyncRunner(boolean doChecks)
doChecks - true for detailed VOTable checkingpublic static VotLintTapRunner createAsyncRunner(long pollMillis, boolean doChecks)
pollMillis - polling interval in millisecondsdoChecks - true for detailed VOTable checkingCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.