edu.harvard.cfa.vo.tapclient.tool
Class AvailabilityClient

java.lang.Object
  extended by edu.harvard.cfa.vo.tapclient.tool.Client
      extended by edu.harvard.cfa.vo.tapclient.tool.AvailabilityClient

public class AvailabilityClient
extends Client

A TAP command line interface.


Constructor Summary
AvailabilityClient()
          Construct an AvailabilityClient with the default Options.
 
Method Summary
protected  void doAvailability()
          Writes the TAP service availability to the output stream.
static void main(java.lang.String[] args)
          Calls System.exit(0) on success Calls System.exit(1) on error
 void run()
           
 
Methods inherited from class edu.harvard.cfa.vo.tapclient.tool.Client
checkRequired, createOptions, getBaseName, getCommandLine, getCommandLineSyntax, getOptionComparator, getOptions, getOutput, getVersion, isVerbose, parse, printHelp, printVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailabilityClient

public AvailabilityClient()
Construct an AvailabilityClient with the default Options.

See Also:
Client.createOptions()
Method Detail

run

public void run()
         throws org.apache.commons.cli.ParseException,
                java.io.FileNotFoundException,
                HttpException,
                ResponseFormatException,
                java.io.IOException
Overrides:
run in class Client
Throws:
org.apache.commons.cli.ParseException
java.io.FileNotFoundException
HttpException
ResponseFormatException
java.io.IOException

doAvailability

protected void doAvailability()
                       throws java.io.FileNotFoundException,
                              HttpException,
                              ResponseFormatException,
                              java.io.IOException
Writes the TAP service availability to the output stream.

Throws:
java.io.FileNotFoundException - if an error occurs opening the output file.
HttpException - if the TAP service gives an unexpected HTTP response code.
ResponseFormatException - if an error occurs parsing the TAP service response.
java.io.IOException - if an I/O error occurs communicating with the TAP service.
See Also:
Client.getOutput()

main

public static void main(java.lang.String[] args)
Calls System.exit(0) on success Calls System.exit(1) on error