ch.ethz.iks.slp.impl
Class LocatorImpl

Package class diagram package LocatorImpl
java.lang.Object
  extended by ch.ethz.iks.slp.impl.LocatorImpl
All Implemented Interfaces:
Locator

public final class LocatorImpl
extends Object
implements Locator

Implementation of the Locator interface. If the configuration does not have to provide UA functionalities, this class does not have to be included in the distribution.

Since:
0.1
Author:
Jan S. Rellermeyer, ETH Zurich
See Also:
Locator

Constructor Summary
LocatorImpl()
          create a new LocatorImpl instance.
LocatorImpl(Locale locale)
          create a new LocatorImpl instance.
 
Method Summary
 ServiceLocationEnumeration findAttributes(ServiceType type, List scopes, List attributeIds)
          find attributes by service type.
 ServiceLocationEnumeration findAttributes(ServiceURL url, List scopes, List attributeIds)
          find attributes by service URL.
 ServiceLocationEnumeration findServices(ServiceType type, List scopes, String searchFilter)
          find services.
 ServiceLocationEnumeration findServiceTypes(String namingAuthority, List scopes)
          find the service types.
 Locale getLocale()
          returns the locale for this instance.
 void setLocale(Locale locale)
          Set the locale of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocatorImpl

public LocatorImpl()
create a new LocatorImpl instance.


LocatorImpl

public LocatorImpl(Locale locale)
create a new LocatorImpl instance.

Parameters:
theLocale - the Locale for this instance.
Method Detail

getLocale

public Locale getLocale()
returns the locale for this instance.

Specified by:
getLocale in interface Locator
Returns:
the Locale.

setLocale

public void setLocale(Locale locale)
Set the locale of this instance.

Specified by:
setLocale in interface Locator
Parameters:
locale - the Locale.
See Also:
Advertiser#setLocale()

findServiceTypes

public ServiceLocationEnumeration findServiceTypes(String namingAuthority,
                                                   List scopes)
                                            throws ServiceLocationException
find the service types.

Specified by:
findServiceTypes in interface Locator
Parameters:
namingAuthority - the naming authority.
scopes - the scopes.
Returns:
a ServiceLocationEnumeration over the results.
Throws:
ServiceLocationException - if something goes wrong.
See Also:
Locator.findServiceTypes(String, List)

findServices

public ServiceLocationEnumeration findServices(ServiceType type,
                                               List scopes,
                                               String searchFilter)
                                        throws ServiceLocationException
find services.

Specified by:
findServices in interface Locator
Parameters:
type - the service type.
scopes - the scopes.
searchFilter - an LDAP filter expression.
Returns:
a ServiceLocationEnumeration over the results.
Throws:
ServiceLocationException - if something goes wrong.
See Also:
Locator.findAttributes(ServiceType, List, List)

findAttributes

public ServiceLocationEnumeration findAttributes(ServiceURL url,
                                                 List scopes,
                                                 List attributeIds)
                                          throws ServiceLocationException
find attributes by service URL.

Specified by:
findAttributes in interface Locator
Parameters:
url - the ServiceURL of the service.
scopes - a List of scoped to be included.
attributeIds - a List of attributes for which the values should be returned, if they exist.
Returns:
ServiceLocationEnumeration over the results.
Throws:
ServiceLocationException - in case of network errors etc.
See Also:
Locator.findAttributes(ServiceURL, List, List)

findAttributes

public ServiceLocationEnumeration findAttributes(ServiceType type,
                                                 List scopes,
                                                 List attributeIds)
                                          throws ServiceLocationException
find attributes by service type.

Specified by:
findAttributes in interface Locator
Parameters:
type - the service type.
scopes - the scopes.
attributeIds - a List of attributes for which the values should be returned, if they exist.
Returns:
a ServiceLocationEnumeration over the results.
Throws:
ServiceLocationException - if something goes wrong.
See Also:
Locator.findAttributes(ServiceType, List, List)


Copyright © 2014 universAAL Consortium. All Rights Reserved.