org.sblim.slp.internal
Class AdvertiserImpl

java.lang.Object
  extended by org.sblim.slp.internal.AdvertiserImpl
All Implemented Interfaces:
Advertiser

public class AdvertiserImpl
extends Object
implements Advertiser

AdvertiserImpl


Constructor Summary
AdvertiserImpl(Locale pLocale)
          Ctor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdvertiserImpl

public AdvertiserImpl(Locale pLocale)
Ctor.

Parameters:
pLocale -
Method Detail

addAttributes

public void addAttributes(ServiceURL pURL,
                          Vector<ServiceLocationAttribute> pAttributes)
                   throws ServiceLocationException
Description copied from interface: Advertiser
Update the registration by adding the given attributes. The API library is required to perform the operation in all scopes obtained through configuration.

Specified by:
addAttributes in interface Advertiser
Parameters:
pURL -
pAttributes -
Throws:
ServiceLocationException

deleteAttributes

public void deleteAttributes(ServiceURL pURL,
                             Vector<String> pAttributeIds)
                      throws ServiceLocationException
Description copied from interface: Advertiser
Delete 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:
deleteAttributes in interface Advertiser
Parameters:
pURL -
pAttributeIds -
Throws:
ServiceLocationException

deregister

public void deregister(ServiceURL pURL)
                throws ServiceLocationException
Description copied from interface: Advertiser
Deregister 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:
deregister in interface Advertiser
Parameters:
pURL - The URL for the service.
Throws:
ServiceLocationException

getLocale

public Locale getLocale()
Description copied from interface: Advertiser
Return the language locale with which this object was created.

Specified by:
getLocale in interface Advertiser
Returns:
The locale

register

public void register(ServiceURL pURL,
                     Vector<ServiceLocationAttribute> pAttributes)
              throws ServiceLocationException
Description copied from interface: Advertiser
Register 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:
register in interface Advertiser
Parameters:
pURL - The URL for the service.
pAttributes - A vector of ServiceLocationAttribute objects describing the service.
Throws:
ServiceLocationException


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.