uk.org.ogsadai.client.toolkit.service
Interface Registry

All Superinterfaces:
Properties, Service

public interface Registry
extends Service, Properties

An interface designed to provide a generic client-side view of a registry service.

Author:
The OGSA-DAI Team.

Method Summary
 boolean add(java.net.URL url, org.w3c.dom.Document metadata)
          Add a service to the registry.
 ServiceMetaData getServiceMetaData(java.net.URL url)
          Get the metadata for a given service
 java.net.URL[] getServices()
          Obtain the URLs of all registered services
 java.net.URL[] getServices(javax.xml.namespace.QName portType)
          Obtain the URLs of all registered services that implement the specified port type
 java.net.URL[] getServices(javax.xml.namespace.QName[] portTypes)
          Obtain the URLs of all registered services that implement a specific port type.
 boolean remove(java.net.URL url)
          Remove a service from the registry
 
Methods inherited from interface uk.org.ogsadai.client.toolkit.service.Service
getConnectionProperty, getPortTypes, getResourceIDs, getURL, ping, setConnectionProperty, setResourceID
 
Methods inherited from interface uk.org.ogsadai.client.toolkit.service.Properties
getProperties, getProperty, getPropertyNames
 

Method Detail

add

public boolean add(java.net.URL url,
                   org.w3c.dom.Document metadata)
            throws ServiceCommsException
Add a service to the registry.

Parameters:
url - URL of the service to register
metadata - an XML document containing information that the service wishes to publish
Returns:
true if the registration was successful
Throws:
ServiceCommsException

remove

public boolean remove(java.net.URL url)
               throws ServiceCommsException
Remove a service from the registry

Parameters:
url - URL of the service to remove
Returns:
true if the removal was successful
Throws:
ServiceCommsException

getServices

public java.net.URL[] getServices()
                           throws ServiceCommsException,
                                  DataFormatException
Obtain the URLs of all registered services

Returns:
an array of URLs
Throws:
ServiceCommsException
DataFormatException

getServices

public java.net.URL[] getServices(javax.xml.namespace.QName portType)
                           throws ServiceCommsException,
                                  DataFormatException
Obtain the URLs of all registered services that implement the specified port type

Parameters:
portType - name of a port type
Returns:
an array of URLs
Throws:
ServiceCommsException
DataFormatException

getServices

public java.net.URL[] getServices(javax.xml.namespace.QName[] portTypes)
                           throws ServiceCommsException,
                                  DataFormatException
Obtain the URLs of all registered services that implement a specific port type.

Parameters:
portTypes - a list of port type names
Returns:
an array of URLs
Throws:
ServiceCommsException
DataFormatException

getServiceMetaData

public ServiceMetaData getServiceMetaData(java.net.URL url)
                                   throws ServiceCommsException,
                                          DataFormatException
Get the metadata for a given service

Parameters:
url - URL of the service
Returns:
metadata
Throws:
ServiceCommsException
DataFormatException