public interface Locator
Modifier and Type | Method and Description |
---|---|
ServiceLocationEnumeration |
findAttributes(ServiceType type,
List scopes,
List attributeIds)
Find all services that match a ServiceType.
|
ServiceLocationEnumeration |
findAttributes(ServiceURL url,
List scopes,
List attributeIds)
Find all services that match a ServiceURL.
|
ServiceLocationEnumeration |
findServices(ServiceType type,
List scopes,
String searchFilter)
Find all services that match a certain service type.
|
ServiceLocationEnumeration |
findServiceTypes(String namingAuthority,
List scopes)
Find all services types that are currently registered in the network.
|
Locale |
getLocale()
Returns the locale of this Locator instance.
|
void |
setLocale(Locale locale)
Get the locale of this instance.
|
Locale getLocale()
void setLocale(Locale locale)
locale
- the Locale.Advertiser.getLocale()
ServiceLocationEnumeration findServiceTypes(String namingAuthority, List scopes) throws ServiceLocationException
namingAuthority
- the naming authority for the service type. If omitted, ALL
Service Types are returned, regardless of Naming Authority.
With the empty String
(""), IANA
will be assumed.scopes
- a List
of scopes in that service types are to be
discovered.ServiceLocationException
- whenever called.ServiceLocationEnumeration findServices(ServiceType type, List scopes, String searchFilter) throws ServiceLocationException, IllegalArgumentException
type
- the ServiceType.scopes
- A List
of scope Strings
, RFC 2614
uses Vector
here but jSLP prefers the Collection
Framework.searchFilter
- an RFC 1960 compliant String
of a LDAP filter.
RFC 2614 proposes the newer RFC 2254 style filters that adds
support for extensible matches.ServiceURLs
of
the found services.ServiceLocationException
- in case of an exception in the underlying framework.InvalidSyntaxException
IllegalArgumentException
ServiceLocationEnumeration findAttributes(ServiceURL url, List scopes, List attributeIds) throws ServiceLocationException
url
- the ServiceURL.scopes
- A List
of scopes Strings
, RFC 2614
uses Vector
here but jSLP prefers the Collection
Framework.attributeIds
- A List of attribute-value-pairs like
(key = value)that must match. If null, no attribute constraints are applied.
ServiceURLs
of
the found services.ServiceLocationException
- in case of an exception in the underlying framework.ServiceLocationEnumeration findAttributes(ServiceType type, List scopes, List attributeIds) throws ServiceLocationException
type
- the ServiceType.scopes
- A List
of scope Strings
, RFC 2614
uses Vector
here but jSLP prefers the Collection
Framework.attributeIds
- A List of attribute-value-pairs like
(key = value)that must match. If null, no attribute constraints are applied.
ServiceLocationException
- in case of an exception in the underlying framework.Copyright © 2018 universAAL Consortium. All rights reserved.