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

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

public interface Service

Generic service interface.

Author:
The OGSA-DAI Team.

Method Summary
 ConnectionProperty getConnectionProperty(javax.xml.namespace.QName name)
          Obtain a connection property with the specified name.
 javax.xml.namespace.QName[] getPortTypes()
          Returns the port types that this service implements
 ResourceID[] getResourceIDs()
          Obtain the resource IDs of the resources that are associated with this service
 java.net.URL getURL()
          Obtain the URL of the service
 void ping()
          Contacts the service to check it is running.
 void setConnectionProperty(ConnectionProperty property)
          Configure the connection with a property.
 void setResourceID(ResourceID id)
          Set the default resource.
 

Method Detail

getURL

public java.net.URL getURL()
Obtain the URL of the service

Returns:
the URL

getResourceIDs

public ResourceID[] getResourceIDs()
                            throws ServiceCommsException,
                                   ServerException
Obtain the resource IDs of the resources that are associated with this service

Returns:
an array of resource IDs
Throws:
ServiceCommsException
ServerException

setResourceID

public void setResourceID(ResourceID id)
Set the default resource. Any requests that interact with a resource will use this resource ID.

Parameters:
id - resource ID

getPortTypes

public javax.xml.namespace.QName[] getPortTypes()
Returns the port types that this service implements

Returns:
an array of port type names

setConnectionProperty

public void setConnectionProperty(ConnectionProperty property)
Configure the connection with a property.

Parameters:
property - a connection property

getConnectionProperty

public ConnectionProperty getConnectionProperty(javax.xml.namespace.QName name)
Obtain a connection property with the specified name.

Parameters:
name - property name
Returns:
the connection property object

ping

public void ping()
          throws ServiceCommsException
Contacts the service to check it is running.

Throws:
ServiceCommsException - If the service cannot be contacted.