edu.harvard.cfa.vo.tapclient.vosi
Class Capabilities

java.lang.Object
  extended by edu.harvard.cfa.vo.tapclient.vosi.Capabilities

public class Capabilities
extends java.lang.Object

A collection of general capabilities of a service. Capabilities, according to the VOSI Recommendation, provides a list of Capability objects which


Constructor Summary
Capabilities(java.lang.String fullURL)
          Constructs a Capabilities object for the given service.
 
Method Summary
 java.util.List<Capability> getCapabilities()
          Returns the Capability list of the service.
 void list(java.io.PrintStream output)
           
 void list(java.io.PrintStream output, java.lang.String indent)
           
 void update()
          Updates this Capabilities object with the latest response from the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Capabilities

public Capabilities(java.lang.String fullURL)
Constructs a Capabilities object for the given service.

Parameters:
fullURL - the full URL associated with this Capabilities object.
Method Detail

getCapabilities

public java.util.List<Capability> getCapabilities()
Returns the Capability list of the service. The list returned is current as of the last call to update.

Returns:
a list of Capability objects.
See Also:
update(), Capability

update

public void update()
            throws HttpException,
                   ResponseFormatException,
                   java.io.IOException
Updates this Capabilities object with the latest response from the service. A request is made to the service associated with this Capabilities object.

Throws:
HttpException - if the service responses to the VOSI Capabilities request with an unexpected HTTP status.
ResponseFormatException - if an error occurs parsing the service response into an VOSI Capabilities document.
java.io.IOException - if an error occurs creating an input stream.

list

public void list(java.io.PrintStream output)

list

public void list(java.io.PrintStream output,
                 java.lang.String indent)