public class AdvertiserImpl extends java.lang.Object implements Advertiser
| Constructor and Description |
|---|
AdvertiserImpl(java.util.Locale pLocale)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributes(ServiceURL pURL,
java.util.Vector<ServiceLocationAttribute> pAttributes)
Update the registration by adding the given attributes.
|
void |
deleteAttributes(ServiceURL pURL,
java.util.Vector<java.lang.String> pAttributeIds)
Delete the attributes from a URL for the locale with which the Advertiser
was created.
|
void |
deregister(ServiceURL pURL)
Deregister a service from the SLP framework.
|
java.util.Locale |
getLocale()
Return the language locale with which this object was created.
|
void |
register(ServiceURL pURL,
java.util.Vector<ServiceLocationAttribute> pAttributes)
Register a new service with SLP having the given attributes.
|
public AdvertiserImpl(java.util.Locale pLocale)
pLocale - public void addAttributes(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
AdvertiseraddAttributes in interface AdvertiserpURL - pAttributes - ServiceLocationExceptionpublic void deleteAttributes(ServiceURL pURL, java.util.Vector<java.lang.String> pAttributeIds) throws ServiceLocationException
AdvertiserdeleteAttributes in interface AdvertiserpURL - pAttributeIds - ServiceLocationExceptionpublic void deregister(ServiceURL pURL) throws ServiceLocationException
Advertiserderegister in interface AdvertiserpURL - The URL for the service.ServiceLocationExceptionpublic java.util.Locale getLocale()
AdvertisergetLocale in interface Advertiserpublic void register(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
Advertiserregister in interface AdvertiserpURL - The URL for the service.pAttributes - A vector of ServiceLocationAttribute objects describing the
service.ServiceLocationExceptionCopyright © 2005, 2013 IBM Corporation. All Rights Reserved.