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

Field Summary
private  SLPConfiguration _conf
           
private  Locale _locale
           
private  NetworkManager _net
           
 
Constructor Summary
(package private) AdvertiserImpl(Locale locale)
           
 
Method Summary
 void addAttributes(ServiceURL url, Vector attributes)
          This operation is not supported.
 void deleteAttributes(ServiceURL url, Vector attributeIds)
          This operation is not supported.
 void deregister(ServiceURL url)
          Deregisters a particular URL.
 Locale getLocale()
          Returns the current locale of this Advertiser.
 void register(ServiceURL url, Vector attributes)
          Registers a ServiceURL with the slp daemon.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_locale

private Locale _locale

_conf

private SLPConfiguration _conf

_net

private NetworkManager _net
Constructor Detail

AdvertiserImpl

AdvertiserImpl(Locale locale)
Method Detail

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.