Deprecated API


Contents
Deprecated Interfaces
com.microsoft.tfs.core.httpclient.MethodRetryHandler
          use HttpMethodRetryHandler 
 

Deprecated Classes
com.microsoft.tfs.core.httpclient.auth.AuthSchemeBase
          No longer used 
com.microsoft.tfs.core.httpclient.util.DateParser
          Use DateUtil 
com.microsoft.tfs.core.httpclient.DefaultMethodRetryHandler
          use DefaultHttpMethodRetryHandler 
com.microsoft.tfs.core.httpclient.HttpConstants
          use EncodingUtil class 
com.microsoft.tfs.core.httpclient.methods.MultipartPostMethod
          Use MultipartRequestEntity in conjunction with PostMethod instead. 
com.microsoft.tfs.core.httpclient.NTCredentials
          Use UsernamePasswordCredentials with the username set to DOMAIN\\username or username@domain 
com.microsoft.tfs.core.httpclient.util.URIUtil.Coder
          use org.apache.commons.codec.net.URLCodec 
 

Deprecated Exceptions
com.microsoft.tfs.core.httpclient.HttpRecoverableException
          no longer used 
 

Deprecated Fields
com.microsoft.tfs.core.httpclient.HttpsURL._default_port
          Use HttpsURL.DEFAULT_PORT instead. This one doesn't conform to the project naming conventions. 
com.microsoft.tfs.core.httpclient.HttpURL._default_port
          Use HttpURL.DEFAULT_PORT instead. This one doesn't conform to the project naming conventions. 
com.microsoft.tfs.core.httpclient.HttpsURL._default_scheme
          Use HttpsURL.DEFAULT_SCHEME instead. This one doesn't conform to the project naming conventions. 
com.microsoft.tfs.core.httpclient.HttpURL._default_scheme
          Use HttpURL.DEFAULT_SCHEME instead. This one doesn't conform to the project naming conventions. 
com.microsoft.tfs.core.httpclient.methods.multipart.Part.BOUNDARY
          use HttpMethodParams.MULTIPART_BOUNDARY 
com.microsoft.tfs.core.httpclient.methods.multipart.Part.BOUNDARY_BYTES
            
com.microsoft.tfs.core.checkinpolicies.PolicyContextKeys.CHECKIN_CONTROL
           
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.CONTENT_LENGTH_AUTO
          Use InputStreamRequestEntity.CONTENT_LENGTH_AUTO. 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.CONTENT_LENGTH_CHUNKED
          Use EntityEnclosingMethod.setContentChunked(boolean). 
com.microsoft.tfs.core.checkinpolicies.PolicyContextKeys.PENDING_CHANGES_CONTROL
          TEE 10.0 no longer uses this control, so it is not initialized in PolicyContexts. Use the control returned by the PolicyContextKeys.CHECKIN_CONTROL key instead. 
 

Deprecated Methods
com.microsoft.tfs.core.httpclient.auth.DigestScheme.authenticate(Credentials, String, String)
          Use #authenticate(Credentials, HttpMethod) 
com.microsoft.tfs.core.httpclient.auth.BasicScheme.authenticate(UsernamePasswordCredentials)
          Use BasicScheme.authenticate(UsernamePasswordCredentials, String) Returns a basic Authorization header value for the given UsernamePasswordCredentials. 
com.microsoft.tfs.core.httpclient.util.URIUtil.Coder.decode(char[], String)
          use org.apache.commons.codec.net.URLCodec 
com.microsoft.tfs.core.httpclient.util.URIUtil.Coder.encode(String, BitSet, String)
          use org.apache.commons.codec.net.URLCodec 
com.microsoft.tfs.core.clients.workitem.project.Project.getAndRefreshStoredQueries()
          please use getQueryHierarchy instead 
com.microsoft.tfs.core.clients.webservices.TeamFoundationIdentity.getAttribute(String, String)
          use TeamFoundationIdentity.getProperty(String) 
com.microsoft.tfs.core.httpclient.methods.HeadMethod.getBodyCheckTimeout()
          Use HttpMethodParams 
com.microsoft.tfs.core.httpclient.methods.multipart.Part.getBoundary()
          uses a constant string. Rather use Part.getPartBoundary() 
com.microsoft.tfs.core.httpclient.SimpleHttpConnectionManager.getConnection(HostConfiguration, long)
          Use #getConnectionWithTimeout(HostConfiguration, long) 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.getConnection(HostConfiguration, long)
          Use #getConnectionWithTimeout(HostConfiguration, long) 
com.microsoft.tfs.core.httpclient.HttpConnectionManager.getConnection(HostConfiguration, long)
          Use #getConnectionWithTimeout(HostConfiguration, long) 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.getConnectionsInUse()
          Use MultiThreadedHttpConnectionManager.getConnectionsInPool() 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.getConnectionsInUse(HostConfiguration)
          Use MultiThreadedHttpConnectionManager.getConnectionsInPool(HostConfiguration) 
com.microsoft.tfs.core.httpclient.HttpClient.getHost()
          use #getHostConfiguration() 
com.microsoft.tfs.core.httpclient.HttpMethodBase.getHostConfiguration()
          no longer applicable 
com.microsoft.tfs.core.httpclient.HttpMethod.getHostConfiguration()
          no longer applicable 
com.microsoft.tfs.core.httpclient.auth.RFC2617Scheme.getID()
          no longer used 
com.microsoft.tfs.core.httpclient.auth.DigestScheme.getID()
          no longer used 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.getMaxConnectionsPerHost()
          Use HttpConnectionManagerParams.getDefaultMaxConnectionsPerHost() , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.getMaxTotalConnections()
          Use HttpConnectionManagerParams.getMaxTotalConnections(), HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.HttpMethodBase.getMethodRetryHandler()
          use HttpMethodParams 
com.microsoft.tfs.core.clients.versioncontrol.soapextensions.PendingChange.getPendingChangeID()
          since TFS 2010 
com.microsoft.tfs.core.httpclient.HttpClient.getPort()
          use #getHostConfiguration() 
com.microsoft.tfs.core.httpclient.URIException.getReason()
          You should instead call Throwable.getMessage(). 
com.microsoft.tfs.core.httpclient.HttpException.getReason()
          HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release. 
com.microsoft.tfs.core.httpclient.HttpException.getReasonCode()
          HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release. 
com.microsoft.tfs.core.httpclient.HttpMethodBase.getRecoverableExceptionCount()
          no longer used Returns the number of "recoverable" exceptions thrown and handled, to allow for monitoring the quality of the connection. 
com.microsoft.tfs.core.httpclient.HttpConnection.getSoTimeout()
          Use HttpConnectionParams.getSoTimeout(), HttpConnection.getParams(). 
com.microsoft.tfs.core.clients.framework.configuration.catalog.TeamProjectCatalogEntity.getSourceControlCapabilityFlags()
           
com.microsoft.tfs.core.clients.workitem.project.Project.getStoredQueries()
          please use getQueryHierarchy instead 
com.microsoft.tfs.core.TFSConnection.getURL()
          use TFSConnection.getBaseURI() instead 
com.microsoft.tfs.core.httpclient.methods.ExpectContinueMethod.getUseExpectHeader()
          Use HttpMethodParams 
com.microsoft.tfs.core.httpclient.Header.getValues()
          Use #getElements 
com.microsoft.tfs.core.httpclient.HttpConnection.getVirtualHost()
          no longer applicable 
com.microsoft.tfs.core.httpclient.HostConfiguration.getVirtualHost()
          use HostParams 
com.microsoft.tfs.core.httpclient.SimpleHttpConnectionManager.isConnectionStaleCheckingEnabled()
          Use HttpConnectionParams.isStaleCheckingEnabled(), HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.isConnectionStaleCheckingEnabled()
          Use HttpConnectionParams.isStaleCheckingEnabled(), HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.HostConfiguration.isHostSet()
          no longer used 
com.microsoft.tfs.core.httpclient.HttpMethodBase.isHttp11()
          Use HttpMethodParams.getVersion() 
com.microsoft.tfs.core.httpclient.HostConfiguration.isProxySet()
          no longer used 
com.microsoft.tfs.core.httpclient.HttpConnection.isStaleCheckingEnabled()
          Use HttpConnectionParams.isStaleCheckingEnabled(), HttpConnection.getParams(). 
com.microsoft.tfs.core.httpclient.HttpMethodBase.isStrictMode()
          Use HttpParams.setParameter(String, Object) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.HttpMethod.isStrictMode()
          Use HttpParams.setParameter(String, Object) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.HttpClient.isStrictMode()
          Use DefaultHttpParams.getParameter(String) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.methods.OptionsMethod.needContentLength()
          only entity enclosing methods set content length header 
com.microsoft.tfs.core.httpclient.HeaderElement.parse(String)
          Use #parseElements(String). 
com.microsoft.tfs.core.httpclient.HttpParser.parseHeaders(InputStream)
          use #parseHeaders(InputStream, String) 
com.microsoft.tfs.core.httpclient.HttpConnection.print(String)
          Use HttpConnection.print(String, String) Writes the specified String (as bytes) to the output stream. 
com.microsoft.tfs.core.httpclient.HttpConnection.printLine(String)
          Use HttpConnection.printLine(String, String) Writes the specified String (as bytes), followed by "\r\n".getBytes() to the output stream. 
com.microsoft.tfs.core.httpclient.HttpConnection.readLine()
          use #readLine(String) 
com.microsoft.tfs.core.httpclient.HttpParser.readLine(InputStream)
          use #readLine(InputStream, String) 
com.microsoft.tfs.core.httpclient.HttpMethodBase.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.HttpMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.methods.TraceMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.methods.MultipartPostMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.methods.HeadMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.methods.GetMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.recycle()
          no longer supported and will be removed in the future version of HttpClient 
com.microsoft.tfs.core.clients.versioncontrol.PropertyUtils.selectUnique(PropertyValue[])
          remove this method as soon as the TFS bug gets fixed that returns duplicate property values 
com.microsoft.tfs.core.clients.webservices.TeamFoundationIdentity.setAttribute(String, String)
          use TeamFoundationIdentity.setProperty(String, Object) 
com.microsoft.tfs.core.httpclient.methods.HeadMethod.setBodyCheckTimeout(int)
          Use HttpMethodParams 
com.microsoft.tfs.core.httpclient.SimpleHttpConnectionManager.setConnectionStaleCheckingEnabled(boolean)
          Use HttpConnectionParams.setStaleCheckingEnabled(boolean) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.setConnectionStaleCheckingEnabled(boolean)
          Use HttpConnectionParams.setStaleCheckingEnabled(boolean) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.HttpConnection.setConnectionTimeout(int)
          Use HttpConnectionParams.setConnectionTimeout(int), HttpConnection.getParams(). 
com.microsoft.tfs.core.httpclient.HttpClient.setConnectionTimeout(int)
          Use HttpConnectionParams.setConnectionTimeout(int) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.HostConfiguration.setHost(String, String, int, Protocol)
          #setHost(String, int, Protocol) 
com.microsoft.tfs.core.httpclient.HttpMethodBase.setHostConfiguration(HostConfiguration)
          no longer applicable 
com.microsoft.tfs.core.httpclient.HttpMethodBase.setHttp11(boolean)
          Use HttpMethodParams.setVersion(HttpVersion) 
com.microsoft.tfs.core.httpclient.HttpClient.setHttpConnectionFactoryTimeout(long)
          Use HttpClientParams.setConnectionManagerTimeout(long) , HttpClient.getParams() 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.setMaxConnectionsPerHost(int)
          Use HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(int) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.MultiThreadedHttpConnectionManager.setMaxTotalConnections(int)
          Use HttpConnectionManagerParams.setMaxTotalConnections(int) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.HttpMethodBase.setMethodRetryHandler(MethodRetryHandler)
          use HttpMethodParams 
com.microsoft.tfs.core.clients.versioncontrol.soapextensions.PendingChange.setPendingChangeID(int)
          since TFS 2010 
com.microsoft.tfs.core.httpclient.URIException.setReason(String)
          Callers should instead set this via a parameter to the constructor. 
com.microsoft.tfs.core.httpclient.HttpException.setReason(String)
          HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release. 
com.microsoft.tfs.core.httpclient.URIException.setReasonCode(int)
          Callers should set the reason code as a parameter to the constructor. 
com.microsoft.tfs.core.httpclient.HttpException.setReasonCode(int)
          HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release. 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.setRequestBody(InputStream)
          use EntityEnclosingMethod.setRequestEntity(RequestEntity) 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.setRequestBody(String)
          use EntityEnclosingMethod.setRequestEntity(RequestEntity) 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.setRequestContentLength(int)
          Use EntityEnclosingMethod.setContentChunked(boolean) or EntityEnclosingMethod.setRequestEntity(RequestEntity) 
com.microsoft.tfs.core.httpclient.methods.EntityEnclosingMethod.setRequestContentLength(long)
          Use EntityEnclosingMethod.setContentChunked(boolean) or EntityEnclosingMethod.setRequestEntity(RequestEntity) 
com.microsoft.tfs.core.httpclient.HttpConnection.setSendBufferSize(int)
          Use HttpConnectionParams.setSendBufferSize(int), HttpConnection.getParams(). 
com.microsoft.tfs.core.httpclient.HttpConnection.setSoTimeout(int)
          Use HttpConnectionParams.setSoTimeout(int), HttpConnection.getParams(). 
com.microsoft.tfs.core.httpclient.HttpConnection.setStaleCheckingEnabled(boolean)
          Use HttpConnectionParams.setStaleCheckingEnabled(boolean) , HttpConnection.getParams(). 
com.microsoft.tfs.core.httpclient.HttpMethodBase.setStrictMode(boolean)
          Use HttpParams.setParameter(String, Object) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.HttpMethod.setStrictMode(boolean)
          Use HttpParams.setParameter(String, Object) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.HttpClient.setStrictMode(boolean)
          Use DefaultHttpParams.setParameter(String, Object) to exercise a more granular control over HTTP protocol strictness. 
com.microsoft.tfs.core.httpclient.HttpClient.setTimeout(int)
          Use HttpConnectionParams.setSoTimeout(int) , HttpConnectionManager.getParams(). 
com.microsoft.tfs.core.httpclient.methods.ExpectContinueMethod.setUseExpectHeader(boolean)
          Use HttpMethodParams 
com.microsoft.tfs.core.httpclient.HttpConnection.setVirtualHost(String)
          no longer applicable 
com.microsoft.tfs.core.httpclient.HttpConnection.shutdownOutput()
          unused 
 

Deprecated Constructors
com.microsoft.tfs.core.httpclient.auth.AuthSchemeBase(String)
          Use parameterless constructor and AuthScheme.processChallenge(String) method 
com.microsoft.tfs.core.httpclient.auth.BasicScheme(String)
          Use parameterless constructor and AuthScheme.processChallenge(String) method 
com.microsoft.tfs.core.httpclient.ConnectMethod()
          use #ConnectMethod(HttpHost); Create a connect method. 
com.microsoft.tfs.core.httpclient.ConnectMethod(HttpMethod)
          the wrapped method is no longer used Create a connect method wrapping the existing method 
com.microsoft.tfs.core.httpclient.ContentLengthInputStream(InputStream, int)
          use ContentLengthInputStream.ContentLengthInputStream(InputStream, long) Creates a new length limited stream 
com.microsoft.tfs.core.httpclient.auth.DigestScheme(String)
          Use parameterless constructor and AuthScheme.processChallenge(String) method 
com.microsoft.tfs.core.httpclient.HttpConnection(String, int, String, String, int, Protocol)
          use #HttpConnection(String, int, String, int, Protocol) 
com.microsoft.tfs.core.httpclient.auth.RFC2617Scheme(String)
          Use parameterless constructor and AuthScheme.processChallenge(String) method 
com.microsoft.tfs.core.httpclient.methods.StringRequestEntity(String)
          use StringRequestEntity.StringRequestEntity(String, String, String) instead 
com.microsoft.tfs.core.httpclient.URI(char[])
          Use #URI(String, boolean) 
com.microsoft.tfs.core.httpclient.URI(char[], String)
          Use #URI(String, boolean, String) 
com.microsoft.tfs.core.httpclient.URI(String)
          Use #URI(String, boolean) 
com.microsoft.tfs.core.httpclient.URI(String, String)
          Use #URI(String, boolean, String) 
com.microsoft.tfs.core.httpclient.URI(URI, String)
          Use #URI(URI, String, boolean) 
 



© 2015 Microsoft. All rights reserved.