|
||||||||||
| 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,
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||