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


Field Summary
static java.lang.String HOSTED_SERVICE_DEFAULT_SCHEME
           
static java.lang.String[] HOSTED_SERVICE_DOMAIN_SUFFIXES
          If the entered host name ends with this domain name, the scheme is automatically chosen.
 
Method Summary
static boolean equals(java.net.URI one, java.net.URI two)
           Compares URIs for TFS servers according to ServerURIComparator.
static boolean isHosted(java.lang.String uriServerName)
           
static boolean isHosted(java.net.URI uri)
           
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
 

Field Detail

HOSTED_SERVICE_DOMAIN_SUFFIXES

public static final java.lang.String[] HOSTED_SERVICE_DOMAIN_SUFFIXES
If the entered host name ends with this domain name, the scheme is automatically chosen.


HOSTED_SERVICE_DEFAULT_SCHEME

public static final java.lang.String HOSTED_SERVICE_DEFAULT_SCHEME
Constant Field Value:
"https"
See Also:
Constant Field Values
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.


isHosted

public static boolean isHosted(java.net.URI uri)

isHosted

public static boolean isHosted(java.lang.String uriServerName)


© 2015 Microsoft. All rights reserved.