Deprecated API
Contents
-
Deprecated Interfaces
-
Deprecated ClassesClassDescriptionNo longer usedno longer usedno longer useduse EncodingUtil classUse
MultipartRequestEntity
in conjunction withPostMethod
instead.UseDateUtil
use org.apache.commons.codec.net.URLCodec
-
Deprecated Exception Classes
-
Deprecated FieldsFieldDescriptionThis field and feature will be removed following HttpClient 3.0.This field and feature will be removed following HttpClient 3.0.Use
HttpsURL.DEFAULT_PORT
instead. This one doesn't conform to the project naming conventions.UseHttpsURL.DEFAULT_SCHEME
instead. This one doesn't conform to the project naming conventions.UseHttpURL.DEFAULT_PORT
instead. This one doesn't conform to the project naming conventions.UseHttpURL.DEFAULT_SCHEME
instead. This one doesn't conform to the project naming conventions.
-
Deprecated MethodsMethodDescriptionUse
AuthScheme.authenticate(Credentials, HttpMethod)
Produces an authorization string for the given set ofCredentials
, method name and URI using the given authentication scheme in response to the actual authorization challenge.no longer usedUseBasicScheme.authenticate(UsernamePasswordCredentials, String)
Returns a basic Authorization header value for the givenUsernamePasswordCredentials
.no longer useduse AuthSchemeuse AuthSchemeuse AuthSchemeuse AuthSchemeUse non-staticNTLMScheme.authenticate(Credentials, HttpMethod)
Use non-staticNTLMScheme.authenticate(Credentials, HttpMethod)
no longer usedno longer usedUse #getElementsUse #parseElements(String).use HostParamsno longer usedno longer used#setHost(String, int, Protocol)use #getHostConfiguration()use #getHostConfiguration()UseDefaultHttpParams.getParameter(String)
to exercise a more granular control over HTTP protocol strictness.UseDefaultHttpParams.setParameter(String, Object)
to exercise a more granular control over HTTP protocol strictness.no longer applicableUseHttpConnection.print(String, String)
Writes the specified String (as bytes) to the output stream.UseHttpConnection.printLine(String, String)
Writes the specified String (as bytes), followed by "\r\n".getBytes() to the output stream.use #readLine(String)no longer applicableunusedUse #getConnectionWithTimeout(HostConfiguration, long)HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.HttpClient no longer uses this for itself. It is only provided for compatibility with existing clients, and will be removed in a future release.no longer applicableUseHttpParams.setParameter(String, Object)
to exercise a more granular control over HTTP protocol strictness.no longer supported and will be removed in the future version of HttpClientUseHttpParams.setParameter(String, Object)
to exercise a more granular control over HTTP protocol strictness.use #getHostAuthState()no longer applicableuseHttpMethodParams
use #getProxyAuthState()no longer used Returns the number of "recoverable" exceptions thrown and handled, to allow for monitoring the quality of the connection.UseHttpParams.setParameter(String, Object)
to exercise a more granular control over HTTP protocol strictness.no longer supported and will be removed in the future version of HttpClientno longer applicableuseHttpMethodParams
UseHttpParams.setParameter(String, Object)
to exercise a more granular control over HTTP protocol strictness.use #parseHeaders(InputStream, String)use #readLine(InputStream, String)use CookieSpec#match(String, int, String, boolean, Cookie)use #getCredentials(AuthScope)use #getProxyCredentials(AuthScope)use #setCredentials(AuthScope, Credentials)use #setProxyCredentials(AuthScope, Credentials)no longer supported and will be removed in the future version of HttpClientUseHttpMethodParams
UseHttpMethodParams
no longer supported and will be removed in the future version of HttpClientUseHttpMethodParams
no longer supported and will be removed in the future version of HttpClientUseHttpMethodParams
uses a constant string. Rather usePart.getPartBoundary()
no longer supported and will be removed in the future version of HttpClientonly entity enclosing methods set content length headerno longer supported and will be removed in the future version of HttpClientUse #getConnectionWithTimeout(HostConfiguration, long)Do not use. The NTCredentials objects should be immutableDo not use. The NTCredentials objects should be immutableUse #getConnectionWithTimeout(HostConfiguration, long)org.apache.commons.httpclient.SimpleHttpConnectionManager.setConnectionStaleCheckingEnabled(boolean) You should instead callThrowable.getMessage()
.Callers should instead set this via a parameter to the constructor.Callers should set the reason code as a parameter to the constructor.Do not use. The UsernamePasswordCredentials objects should be immutableDo not use. The UsernamePasswordCredentials objects should be immutableuse org.apache.commons.codec.net.URLCodecuse org.apache.commons.codec.net.URLCodec
-
Deprecated ConstructorsConstructorDescriptionUse parameterless constructor and
AuthScheme.processChallenge(String)
methodUse parameterless constructor andAuthScheme.processChallenge(String)
methodUse parameterless constructor andAuthScheme.processChallenge(String)
methodUse parameterless constructor andAuthScheme.processChallenge(String)
methoduse #ConnectMethod(HttpHost); Create a connect method.the wrapped method is no longer used Create a connect method wrapping the existing methoduseContentLengthInputStream(InputStream, long)
Creates a new length limited streamuse #HttpConnection(String, int, String, int, Protocol)useStringRequestEntity(String, String, String)
insteadDo not use. Null user name, domain invalid input: '&' host no longer allowedUse the constructor that uses ProtocolSocketFactory, this version of the constructor is only kept for backwards API compatibility.Use #URI(String, boolean)Use #URI(String, boolean, String)Use #URI(String, boolean)Use #URI(String, boolean, String)Use #URI(URI, String, boolean)Do not use. Null user name no longer allowed