Class AdvertiserImpl

  • All Implemented Interfaces:
    Advertiser

    public class AdvertiserImpl
    extends java.lang.Object
    implements Advertiser
    AdvertiserImpl
    • Constructor Summary

      Constructors 
      Constructor Description
      AdvertiserImpl​(java.util.Locale pLocale)
      Ctor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAttributes​(ServiceURL pURL, java.util.Vector pAttributes)
      Update the registration by adding the given attributes.
      void deleteAttributes​(ServiceURL pURL, java.util.Vector 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 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​(java.util.Locale pLocale)
        Ctor.
        Parameters:
        pLocale -
    • Method Detail

      • addAttributes

        public void addAttributes​(ServiceURL pURL,
                                  java.util.Vector 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 - 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

        public void deleteAttributes​(ServiceURL pURL,
                                     java.util.Vector 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 - 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

        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 java.util.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,
                             java.util.Vector 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