uk.org.ogsadai.client.toolkit.wsrf
Class WSRFServiceFetcher

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

public class WSRFServiceFetcher
extends java.lang.Object
implements ServiceFetcher

Creates service objects for WSRF data services.

Author:
The OGSA-DAI Team.

Constructor Summary
WSRFServiceFetcher()
           
 
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 WSRFServiceFetcher getInstance()
          Obtains an instance this class.
 WSRFDataService getWSRFDataService(java.lang.String handle)
          Creates a proxy for the WSRF Data Service specified by the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSRFServiceFetcher

public WSRFServiceFetcher()
Method Detail

getInstance

public static WSRFServiceFetcher getInstance()
Obtains an instance this class.

Returns:
An instance of the WSRFServiceFetcher class.

getWSRFDataService

public WSRFDataService getWSRFDataService(java.lang.String handle)
                                   throws java.net.MalformedURLException
Creates a proxy for the WSRF Data Service specified by the given URL.

Parameters:
handle - URL of an WSRF data service
Returns:
a proxy for WSRF data service at the specified URL
Throws:
MalformedHandleException - If the given service handle is malformed.
java.lang.IllegalArgumentException - If handle argument is null.
java.net.MalformedURLException

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