|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.Ri1RegistryQuery
public class Ri1RegistryQuery
RegistryQuery implementation using the SOAP Registry Interface 1.0 mechanism.
Field Summary | |
---|---|
static String |
AG_REG
Endpoint for primary AstroGrid registry. |
static String |
AG_REG2
Endpoint for secondary AstroGrid registry. |
static String |
EUROVO_REG
Endpoint for Euro-VO registry. |
static int |
RECORD_BUFFER_SIZE
Default maximum number of registry entries retrieved at once. |
static String[] |
REGISTRIES
List of likely registries. |
static ValueInfo |
REGISTRY_INFO
Description of metadata item describing registry location. |
static ValueInfo |
TEXT_INFO
Description of metadata item describing query text. |
static String |
VAO_REG
Endpoint for VAO registry. |
Constructor Summary | |
---|---|
Ri1RegistryQuery(SoapClient soapClient,
String text)
Constructs a new query object from a SOAP client and a query. |
|
Ri1RegistryQuery(String endpoint,
String text)
Constructs a new query object from a registry URL and a query. |
Method Summary | |
---|---|
static String |
getAdqlWhere(Capability cap)
Returns an ADQL 1.0 WHERE clause which can be used to search for capabilities of the given type in the registry. |
DescribedValue[] |
getMetadata()
Returns a set of DescribedValue objects which characterise this query. |
Iterator<RegResource> |
getQueryIterator()
Executes the query described by this object and returns an Iterator over RegResource objects. |
RegResource[] |
getQueryResources()
Executes the query described by this object and returns the result as an array of RegResource s. |
URL |
getRegistry()
Returns the registry URL. |
static String[] |
getSearchableRegistries(String regUrl)
Searches the given registry access URL to find a list of full searchable registry access URLs. |
String |
getText()
Returns the query text. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int RECORD_BUFFER_SIZE
public static final ValueInfo REGISTRY_INFO
public static final ValueInfo TEXT_INFO
public static final String AG_REG
public static final String AG_REG2
public static final String VAO_REG
public static final String EUROVO_REG
public static final String[] REGISTRIES
Constructor Detail |
---|
public Ri1RegistryQuery(SoapClient soapClient, String text)
soapClient
- SOAP clienttext
- ADQL WHERE clause for the registry querypublic Ri1RegistryQuery(String endpoint, String text)
endpoint
- registry endpoint URLtext
- ADQL WHERE clause for the registry queryMethod Detail |
---|
public Iterator<RegResource> getQueryIterator() throws IOException
RegistryQuery
RegResource
objects.
Note that the iterator's next
method may throw the
unchecked exception
RegistryQueryException
with a cause
indicating the underlying error in case of a registry access problem.
getQueryIterator
in interface RegistryQuery
RegResource
s
IOException
public RegResource[] getQueryResources() throws IOException
RegistryQuery
RegResource
s.
getQueryResources
in interface RegistryQuery
IOException
public String getText()
RegistryQuery
getText
in interface RegistryQuery
public URL getRegistry()
RegistryQuery
getRegistry
in interface RegistryQuery
public DescribedValue[] getMetadata()
RegistryQuery
StarTable
resulting from the execution
of this query.
getMetadata
in interface RegistryQuery
public static String[] getSearchableRegistries(String regUrl) throws IOException
regUrl
- registry to start with
IOException
public String toString()
toString
in class Object
public static String getAdqlWhere(Capability cap)
cap
- standard capability
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |