Package org.sblim.slp.internal
Class AdvertiserImpl
- java.lang.Object
-
- org.sblim.slp.internal.AdvertiserImpl
-
- All Implemented Interfaces:
Advertiser
public class AdvertiserImpl extends java.lang.Object implements Advertiser
AdvertiserImpl
-
-
Constructor Summary
Constructors Constructor Description AdvertiserImpl(java.util.Locale pLocale)Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributes(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes)Update the registration by adding the given attributes.voiddeleteAttributes(ServiceURL pURL, java.util.Vector<java.lang.String> pAttributeIds)Delete the attributes from a URL for the locale with which the Advertiser was created.voidderegister(ServiceURL pURL)Deregister a service from the SLP framework.java.util.LocalegetLocale()Return the language locale with which this object was created.voidregister(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes)Register a new service with SLP having the given attributes.
-
-
-
Method Detail
-
addAttributes
public void addAttributes(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
Description copied from interface:AdvertiserUpdate the registration by adding the given attributes. The API library is required to perform the operation in all scopes obtained through configuration.- Specified by:
addAttributesin interfaceAdvertiser- Parameters:
pURL-pAttributes-- Throws:
ServiceLocationException
-
deleteAttributes
public void deleteAttributes(ServiceURL pURL, java.util.Vector<java.lang.String> pAttributeIds) throws ServiceLocationException
Description copied from interface:AdvertiserDelete the attributes from a URL for the locale with which the Advertiser was created. The API library is required to perform the operation in all scopes obtained through configuration.- Specified by:
deleteAttributesin interfaceAdvertiser- Parameters:
pURL-pAttributeIds-- Throws:
ServiceLocationException
-
deregister
public void deregister(ServiceURL pURL) throws ServiceLocationException
Description copied from interface:AdvertiserDeregister a service from the SLP framework. This has the effect of deregistering the service from every language locale. The API library is required to perform the operation in all scopes obtained through configuration.- Specified by:
deregisterin interfaceAdvertiser- Parameters:
pURL- The URL for the service.- Throws:
ServiceLocationException
-
getLocale
public java.util.Locale getLocale()
Description copied from interface:AdvertiserReturn the language locale with which this object was created.- Specified by:
getLocalein interfaceAdvertiser- Returns:
- The locale
-
register
public void register(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
Description copied from interface:AdvertiserRegister a new service with SLP having the given attributes. The API library is required to perform the operation in all scopes obtained through configuration.- Specified by:
registerin interfaceAdvertiser- Parameters:
pURL- The URL for the service.pAttributes- A vector of ServiceLocationAttribute objects describing the service.- Throws:
ServiceLocationException
-
-