|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.microsoft.tfs.core.config.tfproxy.DefaultTFProxyServerSettingsFactory
public class DefaultTFProxyServerSettingsFactory
A default implementation of TFProxyServerSettingsFactory which
returns a DefaultTFProxyServerSettings if a TF download proxy is
configured through the EnvironmentVariables.TF_PROXY environment
variable or Windows registry setting, or returns null if no
proxy is configured.
| Constructor Summary | |
|---|---|
DefaultTFProxyServerSettingsFactory(ConnectionInstanceData connectionInstanceData)
|
|
| Method Summary | |
|---|---|
protected TFProxyServerSettings |
configureFromEnvironmentVariable()
Checks the environment for TF proxy server variable and returns a TFProxyServerSettings if one was configured. |
protected TFProxyServerSettings |
configureFromRegistry()
Checks the registry for TF proxy server settings and returns a TFProxyServerSettings if one was configured. |
void |
dispose(TFProxyServerSettings proxyServerSettings)
Called to dispose a TFProxyServerSettings that was previously
obtained from a call to TFProxyServerSettingsFactory.newProxyServerSettings(). |
TFProxyServerSettings |
newProxyServerSettings()
Called to obtain TF proxy server settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTFProxyServerSettingsFactory(ConnectionInstanceData connectionInstanceData)
| Method Detail |
|---|
public TFProxyServerSettings newProxyServerSettings()
TFProxyServerSettingsFactory
newProxyServerSettings in interface TFProxyServerSettingsFactoryTFProxyServerSettings instance or null if
there are no TF proxy server settingspublic void dispose(TFProxyServerSettings proxyServerSettings)
TFProxyServerSettingsFactory
Called to dispose a TFProxyServerSettings that was previously
obtained from a call to TFProxyServerSettingsFactory.newProxyServerSettings().
This method is called by TFSConnection.close() to
clean up any resources. It can be assumed that the specified
TFProxyServerSettings instance will no longer be used after
calling this method.
dispose in interface TFProxyServerSettingsFactoryproxyServerSettings - an TFProxyServerSettings instance to dispose (must not be
null)protected TFProxyServerSettings configureFromEnvironmentVariable()
TFProxyServerSettings if one was configured.
TFProxyServerSettings created from environment
variable settings, or null if none was configuredprotected TFProxyServerSettings configureFromRegistry()
TFProxyServerSettings if one was configured.
TFProxyServerSettings created from registry settings,
or null if none was configured
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||