com.solers.slp
Class ServiceLocationManager

java.lang.Object
  |
  +--com.solers.slp.ServiceLocationManager

public class ServiceLocationManager
extends Object

Implementation of the SLP ServiceLocationManager class defined in RFC 2614.

Author:
Patrick Callis

Field Summary
private static SLPConfiguration _conf
           
 
Constructor Summary
private ServiceLocationManager()
           
 
Method Summary
static Vector findScopes()
           
static Advertiser getAdvertiser(Locale locale)
           
(package private) static SLPConfiguration getConfiguration()
           
static Locator getLocator(Locale locale)
           
static int getRefreshInterval()
           
(package private) static int getTimestamp()
          Returns the number of seconds since Jan 1, 1970
static void init()
          Initializes the manager's configuration using the System properties.
static void init(File f)
          Initializes the manager's configuration from a file.
static void init(Properties p)
          Initializes the manager's configuration with a set of properties.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

_conf

private static SLPConfiguration _conf
Constructor Detail

ServiceLocationManager

private ServiceLocationManager()
Method Detail

init

public static void init()
Initializes the manager's configuration using the System properties.

init

public static void init(Properties p)
Initializes the manager's configuration with a set of properties.
Parameters:
p - the properties to initialize with.

init

public static void init(File f)
                 throws IOException
Initializes the manager's configuration from a file. The file must be in the format specified by RFC 2614.
Parameters:
f - RFC 2614 SLP configuration file.

getConfiguration

static SLPConfiguration getConfiguration()

getRefreshInterval

public static int getRefreshInterval()
                              throws ServiceLocationException

findScopes

public static Vector findScopes()
                         throws ServiceLocationException

getLocator

public static Locator getLocator(Locale locale)
                          throws ServiceLocationException

getAdvertiser

public static Advertiser getAdvertiser(Locale locale)
                                throws ServiceLocationException

getTimestamp

static int getTimestamp()
Returns the number of seconds since Jan 1, 1970