com.solers.slp
Class AdvertiserImpl
java.lang.Object
|
+--com.solers.slp.AdvertiserImpl
- All Implemented Interfaces:
- Advertiser
- class AdvertiserImpl
- extends Object
- implements Advertiser
Implementation of SLP Advertiser interface.
- Author:
- Patrick Callis
- See Also:
Advertiser
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_locale
private Locale _locale
_conf
private SLPConfiguration _conf
_net
private NetworkManager _net
AdvertiserImpl
AdvertiserImpl(Locale locale)
getLocale
public Locale getLocale()
- Description copied from interface:
Advertiser
- Returns the current locale of this Advertiser.
- Specified by:
getLocale
in interface Advertiser
- Following copied from interface:
com.solers.slp.Advertiser
- Returns:
- a Locale
register
public void register(ServiceURL url,
Vector attributes)
throws ServiceLocationException
- Description copied from interface:
Advertiser
- Registers a ServiceURL with the slp daemon.
- Specified by:
register
in interface Advertiser
- Following copied from interface:
com.solers.slp.Advertiser
- Parameters:
URL
- the ServiceURL to register.attributes
- the attributes associated with this
URL, or an empty Vector.- Throws:
ServiceLocationException
-
deregister
public void deregister(ServiceURL url)
throws ServiceLocationException
- Description copied from interface:
Advertiser
- Deregisters a particular URL.
- Specified by:
deregister
in interface Advertiser
- Following copied from interface:
com.solers.slp.Advertiser
- Parameters:
URL
- the ServiceURL to deregister.- Throws:
ServiceLocationException
-
addAttributes
public void addAttributes(ServiceURL url,
Vector attributes)
throws ServiceLocationException
- Description copied from interface:
Advertiser
- This operation is not supported.
- Specified by:
addAttributes
in interface Advertiser
- Following copied from interface:
com.solers.slp.Advertiser
- Throws:
ServiceLocationException
- always.
deleteAttributes
public void deleteAttributes(ServiceURL url,
Vector attributeIds)
throws ServiceLocationException
- Description copied from interface:
Advertiser
- This operation is not supported.
- Specified by:
deleteAttributes
in interface Advertiser
- Following copied from interface:
com.solers.slp.Advertiser
- Throws:
ServiceLocationException
- always.