AdvertiserImpl
public interface Advertiser
Modifier and Type | Method | 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.
|
java.util.Locale getLocale()
void register(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
pURL
- The URL for the service.pAttributes
- A vector of ServiceLocationAttribute objects describing the
service.ServiceLocationException
void deregister(ServiceURL pURL) throws ServiceLocationException
pURL
- The URL for the service.ServiceLocationException
void addAttributes(ServiceURL pURL, java.util.Vector<ServiceLocationAttribute> pAttributes) throws ServiceLocationException
pURL
- The URL for the service.pAttributes
- A Vector of ServiceLocationAttribute objects to add to the
existing registration. Use an empty vector to update the URL
alone. May not be null.ServiceLocationException
void deleteAttributes(ServiceURL pURL, java.util.Vector<java.lang.String> pAttributeIds) throws ServiceLocationException
pURL
- The URL for the service.pAttributeIds
- A vector of Strings indicating the ids of the attributes to
remove. The strings may be attribute ids or they may be
wildcard patterns to match ids. See [7] for the syntax of
wildcard patterns. The strings may include SLP reserved
characters, they will be escaped by the API before
transmission. May not be the empty vector or null.ServiceLocationException
Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.