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

All Known Subinterfaces:
DAIService, DataService, Registry
All Known Implementing Classes:
WSRFDataService

public interface Properties

Facilitates access to the properties of a service

Author:
The OGSA-DAI Team.

Method Summary
 Property[] getProperties(javax.xml.namespace.QName[] names)
          Obtain multiple properties from a service in one request
 Property getProperty(javax.xml.namespace.QName name)
          Obtain a property of the service or the resource
 javax.xml.namespace.QName[] getPropertyNames()
          Obtain the names of the available properties
 

Method Detail

getProperty

public Property getProperty(javax.xml.namespace.QName name)
                     throws ServiceCommsException,
                            DataFormatException,
                            ResourceException,
                            InvalidPropertyNameException
Obtain a property of the service or the resource

Parameters:
name - qualified name of the property
Returns:
property
Throws:
ServiceCommsException - if there was a problem communicating with the service
DataFormatException - if the response returned by the service did not have the expected format
ResourceException - if the resource could not be found or the ID was invalid
InvalidPropertyNameException - if the property name was invalid

getProperties

public Property[] getProperties(javax.xml.namespace.QName[] names)
                         throws DataFormatException,
                                ResourceException,
                                ServiceCommsException,
                                InvalidPropertyNameException
Obtain multiple properties from a service in one request

Parameters:
names - an array of qualified names
Returns:
array of properties
Throws:
ServiceCommsException - if there was a problem communicating with the service
DataFormatException - if the response did not have the expected format
ResourceException - if the resource could not be found or the ID was valid
InvalidPropertyNameException - if one of the property names was invalid

getPropertyNames

public javax.xml.namespace.QName[] getPropertyNames()
                                             throws ServiceCommsException,
                                                    DataFormatException,
                                                    ResourceException
Obtain the names of the available properties

Returns:
array of qualified names
Throws:
ServiceCommsException - if there was a problem communicating with the service
DataFormatException - if the response did not have the expected format
ResourceException - if the resource could not be found or the ID was invalid