com.tivoli.twg.engine.slp
Class ServiceLocation

java.lang.Object
  extended bycom.tivoli.twg.engine.slp.ServiceLocation

public final class ServiceLocation
extends java.lang.Object

Service Location


Field Summary
static java.util.Comparator COMPARATOR
          Comparator for ordering String objects.
 
Method Summary
 java.lang.Object clone()
           
static UserAgent getUserAgent()
          Returns user agent instance
static void initialize()
          This method is public as an implementation side effect.
static void terminate()
          This method is public as an implementation side effect.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPARATOR

public static final java.util.Comparator COMPARATOR
Comparator for ordering String objects.

from RFC 2608 (Service Location Protocol, Version 2):

The case insensitivity rule applies to all string matching in SLPv2, including Scope strings, SLP SPI strings, service types, attribute tags and values in query handling, language tags, previous responder lists. Comparisons of URL strings, however, is case sensitive.

White space (SPACE, CR, LF, TAB) internal to a string value is folded to a single SPACE character for the sake of string comparisons. White space preceding or following a string value is ignored for the purposes of string comparison. For example, " Some String " matches "SOME STRING".

String comparisons (using comparison operators such as `<=' or `>=') are done using lexical ordering in UTF-8 encoded characters, not using any language specific rules.

Method Detail

initialize

public static void initialize()
                       throws ServiceLocationException
This method is public as an implementation side effect. Do not call or change.

Initialize Service Location Protocol stack

Throws:
ServiceLocationException - if initialization fails

terminate

public static void terminate()
This method is public as an implementation side effect. Do not call or change.

Terminate Service Location Protocol stack


getUserAgent

public static UserAgent getUserAgent()
Returns user agent instance

Returns:
UserAgent user agent object

clone

public final java.lang.Object clone()
                             throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()