com.microsoft.tfs.core.util
Class ServerURIUtils

java.lang.Object
  extended by com.microsoft.tfs.core.util.ServerURIUtils

public class ServerURIUtils
extends java.lang.Object


Method Summary
static boolean equals(java.net.URI one, java.net.URI two)
           Compares URIs for TFS servers according to ServerURIComparator.
static java.net.URI normalizeURI(java.net.URI uri)
          Canonicalizes the URI into "TFS format".
static java.net.URI normalizeURI(java.net.URI uri, boolean lowercase)
          Canonicalizes the URI into TFS format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalizeURI

public static java.net.URI normalizeURI(java.net.URI uri)
Canonicalizes the URI into "TFS format". This function preserves the given case on the URI, and is not suitable for serialization or sharing with Visual Studio (which lowercases URIs.)

Parameters:
uri - the server URI
Returns:
the server URI, canonicalized

normalizeURI

public static java.net.URI normalizeURI(java.net.URI uri,
                                        boolean lowercase)
Canonicalizes the URI into TFS format.

Parameters:
uri - the server URI
lowercase - true to flatten the URI into lowercase, false to preserve case
Returns:
the server URI, canonicalized

equals

public static boolean equals(java.net.URI one,
                             java.net.URI two)

Compares URIs for TFS servers according to ServerURIComparator.



© 2012 Microsoft. All rights reserved.