|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Locator
Locator implements the UA properties of SLP. Services can be discovered by type or by URL, attributes of discovered services can be retrieved and service types can be listed.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |