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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
_conf
private static SLPConfiguration _conf
ServiceLocationManager
private ServiceLocationManager()
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