|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.taplint.TapRunner
uk.ac.starlink.ttools.taplint.VotLintTapRunner
public abstract class VotLintTapRunner
TapRunner implementation which uses the VotLint validation classes to check the query's result VOTable.
Field Summary | |
---|---|
static ValueInfo |
OVERFLOW_INFO
Result table parameter set if table was marked overflowed. |
Constructor Summary | |
---|---|
protected |
VotLintTapRunner(String name,
boolean doChecks)
Constructor. |
Method Summary | |
---|---|
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 StarTable |
executeQuery(Reporter reporter,
TapQuery tq)
Executes a TAP query, performing reporting as appropriate. |
protected abstract URLConnection |
getResultConnection(Reporter reporter,
TapQuery tq)
Execute a TAP query and return a URL connection giving its result. |
VOElement |
getResultsResourceElement(Reporter reporter,
VODocument doc)
Returns the RESOURCE element marked with type="results" from a given VODocument, or the best guess at it. |
boolean |
isOverflow(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. |
VODocument |
readResultDocument(Reporter reporter,
InputStream baseIn)
Reads a TAP result VODocument from an input stream, checking it and reporting messages as appropriate. |
InputStream |
readResultInputStream(Reporter reporter,
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. |
Methods inherited from class uk.ac.starlink.ttools.taplint.TapRunner |
---|
attemptGetResultTable, getDescription, getResultTable, reportSummary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ValueInfo OVERFLOW_INFO
Constructor Detail |
---|
protected VotLintTapRunner(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 errorsMethod Detail |
---|
public boolean isOverflow(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 object
protected abstract URLConnection getResultConnection(Reporter reporter, TapQuery tq) throws IOException
reporter
- validation message destinationtq
- query
IOException
protected StarTable executeQuery(Reporter reporter, TapQuery tq) throws IOException, SAXException
TapRunner
executeQuery
in class TapRunner
reporter
- validation message destinationtq
- query to execute
IOException
SAXException
public InputStream readResultInputStream(Reporter reporter, TapQuery tq) throws IOException, SAXException
reporter
- validation message destinationtq
- query
IOException
SAXException
public VODocument readResultDocument(Reporter reporter, InputStream baseIn) throws IOException, SAXException
reporter
- validation message destinationbaseIn
- VOTable input stream
IOException
SAXException
public VOElement getResultsResourceElement(Reporter reporter, VODocument doc) throws IOException
reporter
- validation message destinationdoc
- TAP result DOM
IOException
public static VotLintTapRunner createPostSyncRunner(boolean doChecks)
doChecks
- true for detailed VOTable checking
public static VotLintTapRunner createGetSyncRunner(boolean doChecks)
doChecks
- true for detailed VOTable checking
public static VotLintTapRunner createAsyncRunner(long pollMillis, boolean doChecks)
pollMillis
- polling interval in millisecondsdoChecks
- true for detailed VOTable checking
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |