|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Advertiser
Advertiser implements the SA properties of SLP. Services can be registered and deregistered. The SLP framework handles DA discovery.
| Method Summary | |
|---|---|
void |
addAttributes(ServiceURL url,
java.util.Dictionary attributes)
Not yet implemented. |
void |
deleteAttributes(ServiceURL url,
java.util.Dictionary attributeIds)
Not yet implemented. |
void |
deregister(ServiceURL url)
Unregister a service with the SLP framework. |
void |
deregister(ServiceURL url,
java.util.List scopes)
deregister a service in some scopes. |
java.util.Locale |
getLocale()
Returns the locale of this Advertiser instance. |
java.net.InetAddress |
getMyIP()
Get the IP address of this machine that is configured as primary jSLP address. |
void |
register(ServiceURL url,
java.util.Dictionary attributes)
Register a service with the SLP framework. |
void |
register(ServiceURL url,
java.util.List scopes,
java.util.Dictionary attributes)
Register a service with the SLP framework. |
void |
setLocale(java.util.Locale locale)
Get the locale of this instance. |
| Method Detail |
|---|
java.util.Locale getLocale()
void setLocale(java.util.Locale locale)
locale - the Locale.getLocale()
void register(ServiceURL url,
java.util.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,
java.util.List scopes,
java.util.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,
java.util.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,
java.util.Dictionary attributes)
throws ServiceLocationException
url - the ServiceURL of the service.attributes - the attributes to be added.
ServiceLocationException - whenever called.
void deleteAttributes(ServiceURL url,
java.util.Dictionary attributeIds)
throws ServiceLocationException
url - the ServiceURL of the service.attributeIds - the attributes to be removed.
ServiceLocationException - whenever called.java.net.InetAddress getMyIP()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||