com.solers.slp
Interface Locator

All Known Implementing Classes:
LocatorImpl

public interface Locator

The SLP Locator interface defined in RFC 2614.


Method Summary
 ServiceLocationEnumeration findAttributes(ServiceType type, Vector scopes, Vector attributeIds)
          Returns the attributes registered with a ServiceType.
 ServiceLocationEnumeration findAttributes(ServiceURL URL, Vector scopes, Vector attributeIds)
          Returns the attributes registered with a ServiceURL.
 ServiceLocationEnumeration findServices(ServiceType type, Vector scopes, String searchFilter)
          Finds all services of a particular type.
 ServiceLocationEnumeration findServiceTypes(String namingAuthority, Vector scopes)
          Finds all service types that have a registered URL.
 Locale getLocale()
          Returns the current locale of this Locator.
 

Method Detail

getLocale

public Locale getLocale()
Returns the current locale of this Locator.
Returns:
a Locale

findServiceTypes

public ServiceLocationEnumeration findServiceTypes(String namingAuthority,
                                                   Vector scopes)
                                            throws ServiceLocationException
Finds all service types that have a registered URL.
Parameters:
namingAuthority - the naming authority to search in, or empty string if all.
Returns:
ServiceLocationEnumeration of ServiceType objects.
Throws:
ServiceLocationException -  

findServices

public ServiceLocationEnumeration findServices(ServiceType type,
                                               Vector scopes,
                                               String searchFilter)
                                        throws ServiceLocationException
Finds all services of a particular type.
Parameters:
type - the ServiceType to search for.
scopes - list of scopes to look in.
searchFilter - an SLP search filter string.
Returns:
ServiceLocationEnumeration of ServiceURL objects.
Throws:
ServiceLocationException -  

findAttributes

public ServiceLocationEnumeration findAttributes(ServiceURL URL,
                                                 Vector scopes,
                                                 Vector attributeIds)
                                          throws ServiceLocationException
Returns the attributes registered with a ServiceURL.
Parameters:
URL - the ServiceURL to query.
scopes - the scopes to look in.
attributeIds - list of ids to return, or empty string if all.
Returns:
ServiceLocationEnumeration of ServiceLocationAttribute objects.
Throws:
ServiceLocationException -  

findAttributes

public ServiceLocationEnumeration findAttributes(ServiceType type,
                                                 Vector scopes,
                                                 Vector attributeIds)
                                          throws ServiceLocationException
Returns the attributes registered with a ServiceType.
Parameters:
type - the ServiceType to query.
scopes - the scopes to look in.
attributeIds - list of ids to return, or empty string if all.
Returns:
ServiceLocationEnumeration of ServiceLocationAttribute objects.
Throws:
ServiceLocationException -