com.microsoft.tfs.core.config.serveruri
Interface ServerURIProvider

All Known Implementing Classes:
DefaultServerURIProvider

public interface ServerURIProvider

An ServerURIProvider is used by a TFSTeamProjectCollection to lazily create a TF server URI. An ServerURIProvider is supplied to a TFSTeamProjectCollection by a ConnectionAdvisor .

TFSTeamProjectCollection allows only a single thread to use a ServerURIProvider, and TFSTeamProjectCollection does not retain any reference to a ServerURIProvider after it is finished using it.

For a default implementation, see DefaultServerURIProvider.

See Also:
TFSTeamProjectCollection, ConnectionAdvisor, DefaultServerURIProvider
Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Method Summary
 java.net.URI getServerURI()
          Called to obtain the server URI.
 

Method Detail

getServerURI

java.net.URI getServerURI()
                          throws java.net.URISyntaxException,
                                 IllegalConfigurationException
Called to obtain the server URI.

Returns:
the server URI to use (must not be null)
Throws:
java.net.URISyntaxException
IllegalConfigurationException


© 2015 Microsoft. All rights reserved.