eu.planets_project.clients.ws
Class DiscoveryUtils
java.lang.Object
eu.planets_project.clients.ws.DiscoveryUtils
public class DiscoveryUtils
- extends Object
- Author:
- Andy Jackson
Method Summary |
static
|
createServiceObject(Class<T> serviceClass,
URL wsdlLocation)
A generic method that can be used as a short-cut for instanciating Planets services. |
static eu.planets_project.services.datatypes.ServiceDescription |
getServiceDescription(URL wsdlLocation)
Attempts to determine the service description for the given WSDL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DiscoveryUtils
public DiscoveryUtils()
getServiceDescription
public static eu.planets_project.services.datatypes.ServiceDescription getServiceDescription(URL wsdlLocation)
- Attempts to determine the service description for the given WSDL.
- Parameters:
wsdlLocation
-
- Returns:
- the service description from the service endpoint describe() method
createServiceObject
public static <T> T createServiceObject(Class<T> serviceClass,
URL wsdlLocation)
- A generic method that can be used as a short-cut for instanciating Planets services.
e.g. Migrate m = DiscoveryUtils.createServiceClass( Migrate.class, wsdlLocation);
If the given WSDL points to one of the older 'Basic' service forms, it will be wrapped up
to present the new API and hide the old one.
- Type Parameters:
T
- Any recognised service class (extends PlanetsService).- Parameters:
serviceClass
- The class of the Planets service to instanciate, e.g. Identify.classwsdlLocation
- The location of the WSDL.
- Returns:
- A new instance of the the given class, wrapping the referenced service.
Copyright © 2013. All Rights Reserved.