com.microsoft.tfs.core.config.serveruri
Class DefaultServerURIProvider

java.lang.Object
  extended by com.microsoft.tfs.core.config.serveruri.DefaultServerURIProvider
All Implemented Interfaces:
ServerURIProvider

public class DefaultServerURIProvider
extends java.lang.Object
implements ServerURIProvider

A default implementation of the ServerURIProvider interface that uses a ConnectionInstanceData to determine the server URI.

See Also:
ServerURIProvider, ConnectionInstanceData
Since:
TEE-SDK-10.1
Thread-safety:
immutable

Constructor Summary
DefaultServerURIProvider(ConnectionInstanceData connectionInstanceData)
           
 
Method Summary
 java.net.URI getServerURI()
          Called to obtain the server URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServerURIProvider

public DefaultServerURIProvider(ConnectionInstanceData connectionInstanceData)
Method Detail

getServerURI

public java.net.URI getServerURI()
                          throws java.net.URISyntaxException,
                                 IllegalConfigurationException
Description copied from interface: ServerURIProvider
Called to obtain the server URI.

Specified by:
getServerURI in interface ServerURIProvider
Returns:
the server URI to use (must not be null)
Throws:
java.net.URISyntaxException
IllegalConfigurationException


© 2015 Microsoft. All rights reserved.