uk.org.ogsadai.client.toolkit.service
Class GenericServiceFetcher

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.service.GenericServiceFetcher
All Implemented Interfaces:
ServiceFetcher

public class GenericServiceFetcher
extends java.lang.Object
implements ServiceFetcher

Generic service fetcher class

Author:
The OGSA-DAI Team.

Constructor Summary
GenericServiceFetcher()
           
 
Method Summary
 DataService getDataService(java.lang.String handle, java.lang.String resourceId)
          Creates a proxy for the Data Service specified by the given URL and resource identifier.
static GenericServiceFetcher getInstance()
           
 ServiceFetcher getServiceFetcher(java.lang.String handle)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericServiceFetcher

public GenericServiceFetcher()
Method Detail

getInstance

public static GenericServiceFetcher getInstance()

getDataService

public DataService getDataService(java.lang.String handle,
                                  java.lang.String resourceId)
                           throws java.net.MalformedURLException
Description copied from interface: ServiceFetcher
Creates a proxy for the Data Service specified by the given URL and resource identifier.

Specified by:
getDataService in interface ServiceFetcher
Parameters:
handle - URL of a data service
resourceId - identifier of resource
Returns:
a proxy for data service
java.net.MalformedURLException

getServiceFetcher

public ServiceFetcher getServiceFetcher(java.lang.String handle)
                                 throws java.net.MalformedURLException,
                                        java.io.IOException
java.net.MalformedURLException
java.io.IOException