net.sourceforge.esw.service
Class ServiceUtil

java.lang.Object
  |
  +--net.sourceforge.esw.service.ServiceUtil

public class ServiceUtil
extends java.lang.Object

Utilities to aid in the Service framework.


Field Summary
static java.lang.String REGGIE_PREFIX
          The prefix for the Reggie servers
static java.lang.String REGGIE_PROPERTY_NAME
          The Property name for Unicast Discovery of Reggie Servers
 
Constructor Summary
ServiceUtil()
           
 
Method Summary
static net.jini.core.discovery.LookupLocator[] getLookupLocators()
          Returns the array of LookupLocators for Unicast Discovery from the Properties framework using the default property name.
static net.jini.core.discovery.LookupLocator[] getLookupLocators(java.lang.String aWho)
          Returns the array of LookupLocators for Unicast Discovery from the Properties framework using the specified property name.
static void printServiceItem(net.jini.core.lookup.ServiceItem item)
          Prints the contents of the specified ServiceItme to System.out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGGIE_PROPERTY_NAME

public static final java.lang.String REGGIE_PROPERTY_NAME
The Property name for Unicast Discovery of Reggie Servers

REGGIE_PREFIX

public static final java.lang.String REGGIE_PREFIX
The prefix for the Reggie servers
Constructor Detail

ServiceUtil

public ServiceUtil()
Method Detail

printServiceItem

public static void printServiceItem(net.jini.core.lookup.ServiceItem item)
Prints the contents of the specified ServiceItme to System.out.

Parameters:
item - the ServiceItem to print.

getLookupLocators

public static net.jini.core.discovery.LookupLocator[] getLookupLocators()
                                                                 throws java.net.MalformedURLException
Returns the array of LookupLocators for Unicast Discovery from the Properties framework using the default property name.

Returns:
the specified Unicast Discovery LookupLocator's.

getLookupLocators

public static net.jini.core.discovery.LookupLocator[] getLookupLocators(java.lang.String aWho)
                                                                 throws java.net.MalformedURLException
Returns the array of LookupLocators for Unicast Discovery from the Properties framework using the specified property name.

Parameters:
aWho - an id for use in identifying which properties to use.
Returns:
the specified Unicast Discovery LookupLocator's.


Copyright 2002 Free Software Foundation. All Rights Reserved.