org.openvpms.esci.service.client
Interface ServiceLocatorFactory

All Known Implementing Classes:
DefaultServiceLocatorFactory

public interface ServiceLocatorFactory

Factory for ServiceLocators.

Version:
$LastChangedDate: 2006-05-02 05:16:31Z $
Author:
OpenVPMS Team

Method Summary
<T> ServiceLocator<T>
getServiceLocator(Class<T> serviceInterface, String wsdlDocumentURL, String username, String password)
          Returns a ServiceLocator for the specified service interface, WSDL document URL and credentials.
<T> ServiceLocator<T>
getServiceLocator(Class<T> serviceInterface, String wsdlDocumentURL, String endpointAddress, String username, String password)
          Returns a ServiceLocator for the specified service interface, WSDL document URL, credentials and optional endpoint address.
 

Method Detail

getServiceLocator

<T> ServiceLocator<T> getServiceLocator(Class<T> serviceInterface,
                                        String wsdlDocumentURL,
                                        String username,
                                        String password)
                                    throws MalformedURLException
Returns a ServiceLocator for the specified service interface, WSDL document URL and credentials.

Parameters:
serviceInterface - the service interface
wsdlDocumentURL - the WSDL document URL
username - the user name to connect with. May be null
password - the password to connect with. May be null
Returns:
a service locator
Throws:
MalformedURLException - if the WSDL document URL is invalid

getServiceLocator

<T> ServiceLocator<T> getServiceLocator(Class<T> serviceInterface,
                                        String wsdlDocumentURL,
                                        String endpointAddress,
                                        String username,
                                        String password)
                                    throws MalformedURLException
Returns a ServiceLocator for the specified service interface, WSDL document URL, credentials and optional endpoint address.

Parameters:
serviceInterface - the service interface
wsdlDocumentURL - the WSDL document URL
endpointAddress - the endpoint address. May be null
username - the user name to connect with. May be null
password - the password to connect with. May be null
Returns:
a service locator
Throws:
MalformedURLException - if the WSDL document URL is invalid


Copyright © 2010-2011 OpenVPMS. All Rights Reserved..