public final class AdvertiserImpl extends Object implements Advertiser
Advertiser
Constructor and Description |
---|
AdvertiserImpl()
Constructor for AdvertiserImpl.
|
AdvertiserImpl(Locale locale)
Constructor for AdvertiserImpl.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(ServiceURL url,
Dictionary attributes)
currently not supported.
|
void |
deleteAttributes(ServiceURL url,
Dictionary attributes)
currently not supported.
|
void |
deregister(ServiceURL url)
deregister a service.
|
void |
deregister(ServiceURL url,
List scopes)
deregister a service in some scopes.
|
Locale |
getLocale()
Get the locale of this 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 new service with the framework.
|
void |
register(ServiceURL url,
List scopes,
Dictionary attributes)
register a new service with the framework using scopes.
|
void |
setLocale(Locale locale)
Set the locale of this instance.
|
public AdvertiserImpl()
public AdvertiserImpl(Locale locale)
theLocale
- Locale.public Locale getLocale()
getLocale
in interface Advertiser
Advertiser.getLocale()
public void setLocale(Locale locale)
setLocale
in interface Advertiser
locale
- the Locale.Advertiser#setLocale()
public void register(ServiceURL url, Dictionary attributes) throws ServiceLocationException
register
in interface Advertiser
url
- the ServiceURL of the service.attributes
- a Dictionary of attributes.ServiceLocationException
- if the registration has failed for any reason.Advertiser.register(ServiceURL, Dictionary)
public void register(ServiceURL url, List scopes, Dictionary attributes) throws ServiceLocationException
register
in interface Advertiser
url
- the ServiceURL of the service.scopes
- a List of scopes.attributes
- a Dictionary of attributes.ServiceLocationException
- if the registration has failed for any reason.Advertiser.register(ServiceURL, List, Dictionary)
public void deregister(ServiceURL url) throws ServiceLocationException
deregister
in interface Advertiser
url
- the ServiceURL of the service.ServiceLocationException
- if the deregistration has failed for any reason.Advertiser.deregister(ServiceURL)
public void deregister(ServiceURL url, List scopes) throws ServiceLocationException
deregister
in interface Advertiser
url
- the ServiceURL of the service.scopes
- the scopes.ServiceLocationException
- if the deregistration has failed for any reason.Advertiser.deregister(ServiceURL, List)
public void addAttributes(ServiceURL url, Dictionary attributes) throws ServiceLocationException
addAttributes
in interface Advertiser
url
- the serviceURLattributes
- the attributes to add.ServiceLocationException
- always.Advertiser.addAttributes(ServiceURL, Dictionary)
public void deleteAttributes(ServiceURL url, Dictionary attributes) throws ServiceLocationException
deleteAttributes
in interface Advertiser
url
- the serviceURL.attributes
- the attributes to delete.ServiceLocationException
- always.Advertiser.deleteAttributes(ServiceURL, Dictionary)
public InetAddress getMyIP()
getMyIP
in interface Advertiser
Copyright © 2018 universAAL Consortium. All rights reserved.