public abstract class VotLintTapRunner extends TapRunner
Modifier and Type | Field and Description |
---|---|
static uk.ac.starlink.table.ValueInfo |
OVERFLOW_INFO
Result table parameter set if table was marked overflowed.
|
Modifier | Constructor and Description |
---|---|
protected |
VotLintTapRunner(java.lang.String name,
boolean doChecks)
Constructor.
|
Modifier and Type | Method and 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.
|
attemptGetResultTable, getDescription, getResultTable, reportSummary
public 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.IOException
protected uk.ac.starlink.table.StarTable executeQuery(Reporter reporter, uk.ac.starlink.vo.TapQuery tq) throws java.io.IOException, org.xml.sax.SAXException
TapRunner
executeQuery
in class TapRunner
reporter
- validation message destinationtq
- query to executejava.io.IOException
org.xml.sax.SAXException
public 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.IOException
org.xml.sax.SAXException
public 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.IOException
org.xml.sax.SAXException
public 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.IOException
public 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 © 2017 Central Laboratory of the Research Councils. All Rights Reserved.