org.sblim.slp.internal
public class AdvertiserImpl extends Object implements Advertiser
Constructor and Description |
---|
AdvertiserImpl(Locale pLocale)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(ServiceURL pURL,
Vector<ServiceLocationAttribute> pAttributes)
Update the registration by adding the given attributes.
|
void |
deleteAttributes(ServiceURL pURL,
Vector<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.
|
Locale |
getLocale()
Return the language locale with which this object was created.
|
void |
register(ServiceURL pURL,
Vector<ServiceLocationAttribute> pAttributes)
Register a new service with SLP having the given attributes.
|
public AdvertiserImpl(Locale pLocale)
pLocale
- public void addAttributes(ServiceURL pURL, Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
Advertiser
addAttributes
in interface Advertiser
pURL
- pAttributes
- ServiceLocationException
public void deleteAttributes(ServiceURL pURL, Vector<String> pAttributeIds) throws ServiceLocationException
Advertiser
deleteAttributes
in interface Advertiser
pURL
- pAttributeIds
- ServiceLocationException
public void deregister(ServiceURL pURL) throws ServiceLocationException
Advertiser
deregister
in interface Advertiser
pURL
- The URL for the service.ServiceLocationException
public Locale getLocale()
Advertiser
getLocale
in interface Advertiser
public void register(ServiceURL pURL, Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
Advertiser
register
in interface Advertiser
pURL
- The URL for the service.pAttributes
- A vector of ServiceLocationAttribute objects describing the
service.ServiceLocationException
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.