Class AdvertiserImpl
java.lang.Object
org.sblim.slp.internal.AdvertiserImpl
- All Implemented Interfaces:
Advertiser
AdvertiserImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributes(ServiceURL pURL, Vector pAttributes) Update the registration by adding the given attributes.voiddeleteAttributes(ServiceURL pURL, Vector 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.Return the language locale with which this object was created.voidregister(ServiceURL pURL, Vector pAttributes) Register a new service with SLP having the given attributes.
-
Constructor Details
-
AdvertiserImpl
-
-
Method Details
-
addAttributes
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- 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.- Throws:
ServiceLocationException
-
deleteAttributes
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- 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.- Throws:
ServiceLocationException
-
deregister
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
Description copied from interface:AdvertiserReturn the language locale with which this object was created.- Specified by:
getLocalein interfaceAdvertiser- Returns:
- The locale
-
register
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
-