|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.ethz.iks.slp.impl.AdvertiserImpl
public final class AdvertiserImpl
Implementation of the Advertiser that provides SLP SA functionality. If the configuration does not have to support SA functionalities, this class does not have to be included in the distribution.
Advertiser
Constructor Summary | |
---|---|
AdvertiserImpl()
Constructor for AdvertiserImpl. |
|
AdvertiserImpl(Locale locale)
Constructor for AdvertiserImpl. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdvertiserImpl()
public AdvertiserImpl(Locale locale)
theLocale
- Locale.Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |