Deprecated API

Contents

Deprecated Interfaces

MethodRetryHandler

Deprecated Classes

AuthSchemeBase
No longer used
DateParser
DefaultMethodRetryHandler
HttpAuthenticator
no longer used
HttpAuthRealm
no longer used
HttpConstants
use EncodingUtil class
HttpRecoverableException
no longer used
MultipartPostMethod
Use MultipartRequestEntity in conjunction with PostMethod instead.
URIUtil.Coder
use org.apache.commons.codec.net.URLCodec

Deprecated Fields

org.apache.commons.httpclient.cookie.CookiePolicy.COMPATIBILITY
org.apache.commons.httpclient.cookie.CookiePolicy.NETSCAPE_DRAFT
org.apache.commons.httpclient.cookie.CookiePolicy.RFC2109
org.apache.commons.httpclient.methods.EntityEnclosingMethod.CONTENT_LENGTH_AUTO
org.apache.commons.httpclient.methods.EntityEnclosingMethod.CONTENT_LENGTH_CHUNKED
org.apache.commons.httpclient.HttpsURL._default_scheme
Use DEFAULT_SCHEME instead.
org.apache.commons.httpclient.HttpsURL._default_port
Use DEFAULT_PORT instead.
org.apache.commons.httpclient.HttpState.PREEMPTIVE_PROPERTY
This field and feature will be removed following HttpClient 3.0.
org.apache.commons.httpclient.HttpState.PREEMPTIVE_DEFAULT
This field and feature will be removed following HttpClient 3.0.
org.apache.commons.httpclient.HttpURL._default_scheme
Use DEFAULT_SCHEME instead.
org.apache.commons.httpclient.HttpURL._default_port
Use DEFAULT_PORT instead.
org.apache.commons.httpclient.methods.multipart.Part.BOUNDARY
org.apache.commons.httpclient.methods.multipart.Part.BOUNDARY_BYTES

Deprecated Methods

org.apache.commons.httpclient.auth.AuthScheme.getID()
no longer used
org.apache.commons.httpclient.auth.AuthScheme.authenticate(Credentials,String,String)
Use authenticate(Credentials,HttpMethod) Produces an authorization string for the given set of Credentials, method name and URI using the given authentication scheme in response to the actual authorization challenge.
org.apache.commons.httpclient.auth.BasicScheme.authenticate(Credentials,String,String)
org.apache.commons.httpclient.auth.BasicScheme.authenticate(UsernamePasswordCredentials)
Use authenticate(UsernamePasswordCredentials,String) Returns a basic Authorization header value for the given UsernamePasswordCredentials.
org.apache.commons.httpclient.cookie.CookiePolicy.getDefaultPolicy()
org.apache.commons.httpclient.cookie.CookiePolicy.setDefaultPolicy(int)
org.apache.commons.httpclient.cookie.CookiePolicy.getSpecByPolicy(int)
org.apache.commons.httpclient.cookie.CookiePolicy.getSpecByVersion(int)
org.apache.commons.httpclient.cookie.CookiePolicy.getCompatibilitySpec()
org.apache.commons.httpclient.auth.DigestScheme.getID()
no longer used
org.apache.commons.httpclient.auth.DigestScheme.authenticate(Credentials,String,String)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestContentLength(int)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestContentLength(long)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestBody(InputStream)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.setRequestBody(String)
org.apache.commons.httpclient.methods.EntityEnclosingMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.methods.ExpectContinueMethod.getUseExpectHeader()
org.apache.commons.httpclient.methods.ExpectContinueMethod.setUseExpectHeader(boolean)
org.apache.commons.httpclient.methods.GetMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.Header.getValues()
Use #getElements
org.apache.commons.httpclient.HeaderElement.parse(String)
Use #parseElements(String).
org.apache.commons.httpclient.methods.HeadMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.methods.HeadMethod.getBodyCheckTimeout()
org.apache.commons.httpclient.methods.HeadMethod.setBodyCheckTimeout(int)
org.apache.commons.httpclient.HostConfiguration.isHostSet()
no longer used
org.apache.commons.httpclient.HostConfiguration.setHost(String,String,int,Protocol)
#setHost(String, int, Protocol)
org.apache.commons.httpclient.HostConfiguration.getVirtualHost()
use HostParams
org.apache.commons.httpclient.HostConfiguration.isProxySet()
no longer used
org.apache.commons.httpclient.auth.HttpAuthenticator.selectAuthScheme(Header[])
org.apache.commons.httpclient.auth.HttpAuthenticator.authenticateDefault(HttpMethod,HttpConnection,HttpState)
use AuthScheme
org.apache.commons.httpclient.auth.HttpAuthenticator.authenticateProxyDefault(HttpMethod,HttpConnection,HttpState)
use AuthScheme
org.apache.commons.httpclient.auth.HttpAuthenticator.authenticate(AuthScheme,HttpMethod,HttpConnection,HttpState)
use AuthScheme
org.apache.commons.httpclient.auth.HttpAuthenticator.authenticateProxy(AuthScheme,HttpMethod,HttpConnection,HttpState)
use AuthScheme
org.apache.commons.httpclient.HttpClient.setStrictMode(boolean)
Use HttpClientParams.setParameter(String,Object) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpClient.isStrictMode()
Use HttpClientParams.getParameter(String) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpClient.setTimeout(int)
org.apache.commons.httpclient.HttpClient.setHttpConnectionFactoryTimeout(long)
org.apache.commons.httpclient.HttpClient.setConnectionTimeout(int)
org.apache.commons.httpclient.HttpClient.getHost()
use #getHostConfiguration()
org.apache.commons.httpclient.HttpClient.getPort()
use #getHostConfiguration()
org.apache.commons.httpclient.HttpConnection.getVirtualHost()
no longer applicable
org.apache.commons.httpclient.HttpConnection.setVirtualHost(String)
no longer applicable
org.apache.commons.httpclient.HttpConnection.isStaleCheckingEnabled()
org.apache.commons.httpclient.HttpConnection.setStaleCheckingEnabled(boolean)
org.apache.commons.httpclient.HttpConnection.setSoTimeout(int)
org.apache.commons.httpclient.HttpConnection.getSoTimeout()
org.apache.commons.httpclient.HttpConnection.setConnectionTimeout(int)
org.apache.commons.httpclient.HttpConnection.print(String)
Use print(String,String) Writes the specified String (as bytes) to the output stream.
org.apache.commons.httpclient.HttpConnection.printLine(String)
Use printLine(String,String) Writes the specified String (as bytes), followed by "\r\n".getBytes() to the output stream.
org.apache.commons.httpclient.HttpConnection.readLine()
use #readLine(String)
org.apache.commons.httpclient.HttpConnection.shutdownOutput()
unused
org.apache.commons.httpclient.HttpConnection.setSendBufferSize(int)
org.apache.commons.httpclient.HttpConnectionManager.getConnection(HostConfiguration,long)
Use #getConnectionWithTimeout(HostConfiguration, long)
org.apache.commons.httpclient.HttpException.setReason(String)
HttpClient no longer uses this for itself.
org.apache.commons.httpclient.HttpException.getReason()
HttpClient no longer uses this for itself.
org.apache.commons.httpclient.HttpException.setReasonCode(int)
HttpClient no longer uses this for itself.
org.apache.commons.httpclient.HttpException.getReasonCode()
HttpClient no longer uses this for itself.
org.apache.commons.httpclient.HttpMethod.getHostConfiguration()
no longer applicable
org.apache.commons.httpclient.HttpMethod.setStrictMode(boolean)
Use HttpParams.setParameter(String,Object) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpMethod.isStrictMode()
Use HttpParams.setParameter(String,Object) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.HttpMethodBase.setHttp11(boolean)
org.apache.commons.httpclient.HttpMethodBase.isHttp11()
org.apache.commons.httpclient.HttpMethodBase.setStrictMode(boolean)
Use HttpParams.setParameter(String,Object) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpMethodBase.isStrictMode()
Use HttpParams.setParameter(String,Object) to exercise a more granular control over HTTP protocol strictness.
org.apache.commons.httpclient.HttpMethodBase.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.HttpMethodBase.getProxyAuthenticationRealm()
use #getProxyAuthState()
org.apache.commons.httpclient.HttpMethodBase.getAuthenticationRealm()
use #getHostAuthState()
org.apache.commons.httpclient.HttpMethodBase.getRecoverableExceptionCount()
no longer used Returns the number of "recoverable" exceptions thrown and handled, to allow for monitoring the quality of the connection.
org.apache.commons.httpclient.HttpMethodBase.getHostConfiguration()
no longer applicable
org.apache.commons.httpclient.HttpMethodBase.setHostConfiguration(HostConfiguration)
no longer applicable
org.apache.commons.httpclient.HttpMethodBase.getMethodRetryHandler()
org.apache.commons.httpclient.HttpMethodBase.setMethodRetryHandler(MethodRetryHandler)
org.apache.commons.httpclient.HttpParser.readLine(InputStream)
use #readLine(InputStream, String)
org.apache.commons.httpclient.HttpParser.parseHeaders(InputStream)
use #parseHeaders(InputStream, String)
org.apache.commons.httpclient.HttpState.getCookies(String,int,String,boolean)
use CookieSpec#match(String, int, String, boolean, Cookie)
org.apache.commons.httpclient.HttpState.getCookiePolicy()
org.apache.commons.httpclient.HttpState.setAuthenticationPreemptive(boolean)
org.apache.commons.httpclient.HttpState.isAuthenticationPreemptive()
org.apache.commons.httpclient.HttpState.setCookiePolicy(int)
org.apache.commons.httpclient.HttpState.setCredentials(String,String,Credentials)
use #setCredentials(AuthScope, Credentials)
org.apache.commons.httpclient.HttpState.getCredentials(String,String)
use #getCredentials(AuthScope)
org.apache.commons.httpclient.HttpState.setProxyCredentials(String,String,Credentials)
use #setProxyCredentials(AuthScope, Credentials)
org.apache.commons.httpclient.HttpState.getProxyCredentials(String,String)
use #getProxyCredentials(AuthScope)
org.apache.commons.httpclient.methods.MultipartPostMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.isConnectionStaleCheckingEnabled()
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.setConnectionStaleCheckingEnabled(boolean)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.setMaxConnectionsPerHost(int)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getMaxConnectionsPerHost()
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.setMaxTotalConnections(int)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getMaxTotalConnections()
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnection(HostConfiguration,long)
Use #getConnectionWithTimeout(HostConfiguration, long)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionsInUse(HostConfiguration)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager.getConnectionsInUse()
org.apache.commons.httpclient.NTCredentials.setDomain(String)
Do not use.
org.apache.commons.httpclient.NTCredentials.setHost(String)
Do not use.
org.apache.commons.httpclient.auth.NTLMScheme.getID()
no longer used
org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTCredentials,String)
org.apache.commons.httpclient.auth.NTLMScheme.authenticate(NTCredentials,String,String)
org.apache.commons.httpclient.auth.NTLMScheme.authenticate(Credentials,String,String)
org.apache.commons.httpclient.methods.OptionsMethod.needContentLength()
only entity enclosing methods set content length header
org.apache.commons.httpclient.methods.multipart.Part.getBoundary()
uses a constant string.
org.apache.commons.httpclient.auth.RFC2617Scheme.getID()
no longer used
org.apache.commons.httpclient.SimpleHttpConnectionManager.isConnectionStaleCheckingEnabled()
org.apache.commons.httpclient.SimpleHttpConnectionManager.setConnectionStaleCheckingEnabled(boolean)
org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(HostConfiguration,long)
Use #getConnectionWithTimeout(HostConfiguration, long)
org.apache.commons.httpclient.methods.TraceMethod.recycle()
no longer supported and will be removed in the future version of HttpClient
org.apache.commons.httpclient.URIException.setReasonCode(int)
Callers should set the reason code as a parameter to the constructor.
org.apache.commons.httpclient.URIException.getReason()
You should instead call getMessage().
org.apache.commons.httpclient.URIException.setReason(String)
Callers should instead set this via a parameter to the constructor.
org.apache.commons.httpclient.util.URIUtil.Coder.encode(String,BitSet,String)
use org.apache.commons.codec.net.URLCodec
org.apache.commons.httpclient.util.URIUtil.Coder.decode(char[],String)
use org.apache.commons.codec.net.URLCodec
org.apache.commons.httpclient.UsernamePasswordCredentials.setUserName(String)
Do not use.
org.apache.commons.httpclient.UsernamePasswordCredentials.setPassword(String)
Do not use.

Deprecated Constructors

org.apache.commons.httpclient.auth.AuthSchemeBase.AuthSchemeBase(String)
Use parameterless constructor and AuthScheme.processChallenge(String) method
org.apache.commons.httpclient.auth.BasicScheme.BasicScheme(String)
Use parameterless constructor and AuthScheme.processChallenge(String) method
org.apache.commons.httpclient.ConnectMethod.ConnectMethod(HttpMethod)
the wrapped method is no longer used Create a connect method wrapping the existing method
org.apache.commons.httpclient.ContentLengthInputStream.ContentLengthInputStream(InputStream,int)
use ContentLengthInputStream(InputStream,long) Creates a new length limited stream
org.apache.commons.httpclient.auth.DigestScheme.DigestScheme(String)
Use parameterless constructor and AuthScheme.processChallenge(String) method
org.apache.commons.httpclient.HttpConnection.HttpConnection(String,int,String,String,int,Protocol)
use #HttpConnection(String, int, String, int, Protocol)
org.apache.commons.httpclient.NTCredentials.NTCredentials()
Do not use.
org.apache.commons.httpclient.protocol.Protocol.Protocol(String,SecureProtocolSocketFactory,int)
Use the constructor that uses ProtocolSocketFactory, this version of the constructor is only kept for backwards API compatibility.
org.apache.commons.httpclient.auth.RFC2617Scheme.RFC2617Scheme(String)
Use parameterless constructor and AuthScheme.processChallenge(String) method
org.apache.commons.httpclient.URI.URI(char[],String)
Use #URI(String, boolean, String)
org.apache.commons.httpclient.URI.URI(char[])
Use #URI(String, boolean)
org.apache.commons.httpclient.URI.URI(String,String)
Use #URI(String, boolean, String)
org.apache.commons.httpclient.URI.URI(String)
Use #URI(String, boolean)
org.apache.commons.httpclient.URI.URI(URI,String)
Use #URI(URI, String, boolean)
org.apache.commons.httpclient.UsernamePasswordCredentials.UsernamePasswordCredentials()
Do not use.

Copyright (c) 1999-2005 - Apache Software Foundation