public class ServiceLocator extends Object
UDDIClerk.getEndpointsSubscriptionCallbackListener| Constructor and Description | 
|---|
ServiceLocator(UDDIClerk clerk)
Requirement in the config is a clerk with access credentials to the UDDI server
 you want the locator to do lookups to. 
 | 
ServiceLocator(UDDIClerk clerk,
              URLLocalizer urlLocalizer,
              Properties properties)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clearCaches()  | 
SelectionPolicy | 
getPolicy()
Returns the selection policy in use by this instance of the ServiceLocator. 
 | 
UDDIServiceCache | 
getUDDIServiceCache()  | 
String | 
lookupEndpoint(QName serviceQName,
              String portName)
Looks up the Endpoints for a Service. 
 | 
String | 
lookupEndpoint(String serviceKey)
Looks up the Endpoints for a Service. 
 | 
ServiceLocator | 
setPolicy(String policy)
The policy selection can be set as property "juddi.client.selection.policy"
 or it can be set programmatically using this method. 
 | 
void | 
shutdown()  | 
ServiceLocator | 
withCache(URL baseCallbackURL)
Creates a new UDDIServiceCache, which brings up a new WebService Endpoint. 
 | 
ServiceLocator | 
withLiveCache(URL baseCallbackURL)
A live cache will receive callbacks from the UDDI server in case there is an update to
 a service's bindings. 
 | 
ServiceLocator | 
withSimpleCache()  | 
public ServiceLocator(UDDIClerk clerk)
clerk - a UDDI Clerk with publish access to the UDDI Server.org.apache.commons.configuration.ConfigurationExceptionpublic ServiceLocator(UDDIClerk clerk, URLLocalizer urlLocalizer, Properties properties) throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic ServiceLocator withCache(URL baseCallbackURL) throws org.apache.commons.configuration.ConfigurationException
baseCallbackURL - org.apache.commons.configuration.ConfigurationExceptionpublic ServiceLocator withLiveCache(URL baseCallbackURL) throws org.apache.commons.configuration.ConfigurationException, BindException
baseCallbackURL - org.apache.commons.configuration.ConfigurationExceptionBindExceptionpublic ServiceLocator withSimpleCache()
public UDDIServiceCache getUDDIServiceCache()
public ServiceLocator setPolicy(String policy)
policy - - the desired policy.PolicyLocalFirst, 
PolicyRoundRobinpublic SelectionPolicy getPolicy() throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic void clearCaches()
public void shutdown()
              throws RemoteException,
                     org.apache.commons.configuration.ConfigurationException,
                     TransportException
RemoteExceptionorg.apache.commons.configuration.ConfigurationExceptionTransportExceptionpublic String lookupEndpoint(String serviceKey) throws RemoteException, org.apache.commons.configuration.ConfigurationException, TransportException
serviceKey - RemoteExceptionorg.apache.commons.configuration.ConfigurationExceptionTransportExceptionpublic String lookupEndpoint(QName serviceQName, String portName) throws RemoteException, org.apache.commons.configuration.ConfigurationException, TransportException
serviceQName - portName - TransportExceptionorg.apache.commons.configuration.ConfigurationExceptionRemoteExceptionCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.