public interface Advertiser
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(ServiceURL url,
Dictionary attributes)
Not yet implemented. Add attributes to an already registered
service.
|
void |
deleteAttributes(ServiceURL url,
Dictionary attributeIds)
Not yet implemented. Remove attributes to an already registered
service.
|
void |
deregister(ServiceURL url)
Unregister a service with the SLP framework.
|
void |
deregister(ServiceURL url,
List scopes)
deregister a service in some scopes.
|
Locale |
getLocale()
Returns the locale of this Advertiser instance.
|
InetAddress |
getMyIP()
Get the IP address of this machine that is configured as primary jSLP
address.
|
void |
register(ServiceURL url,
Dictionary attributes)
Register a service with the SLP framework.
|
void |
register(ServiceURL url,
List scopes,
Dictionary attributes)
Register a service with the SLP framework.
|
void |
setLocale(Locale locale)
Get the locale of this instance.
|
Locale getLocale()
void setLocale(Locale locale)
locale
- the Locale.getLocale()
void register(ServiceURL url, Dictionary attributes) throws ServiceLocationException
url
- the ServiceURL
of the service.attributes
- a Dictionary
of attributes for the service. RFC
2614 proposes a Vector
of attribute-value-pairs
here but the Dictionary
makes this implementation
more close to OSGi
.ServiceLocationException
- in case that the registration failed for any reason.void register(ServiceURL url, List scopes, Dictionary attributes) throws ServiceLocationException
url
- the ServiceURL of the service.scopes
- a List
of scope names as Strings
.attributes
- a Dictionary
of attributes for the service. RFC
2614 proposes a Vector
of attribute-value-pairs
here but the Dictionary
makes this implementation
more close to OSGi
ServiceLocationException
- in case that the registration failed for any reason.void deregister(ServiceURL url) throws ServiceLocationException
url
- the ServiceURL
of the service.ServiceLocationException
- in case that the deregistration failed for any reason.void deregister(ServiceURL url, List scopes) throws ServiceLocationException
url
- the ServiceURL of the service.scopes
- the scopes.ServiceLocationException
- if the deregistration has failed for any reason.deregister(ServiceURL, List)
void addAttributes(ServiceURL url, Dictionary attributes) throws ServiceLocationException
url
- the ServiceURL
of the service.attributes
- the attributes to be added.ServiceLocationException
- whenever called.void deleteAttributes(ServiceURL url, Dictionary attributeIds) throws ServiceLocationException
url
- the ServiceURL
of the service.attributeIds
- the attributes to be removed.ServiceLocationException
- whenever called.InetAddress getMyIP()
Copyright © 2018 universAAL Consortium. All rights reserved.