Deprecated API

Deprecated Classes
org.apache.commons.httpclient.Authenticator
          use HttpAuthenticator 
org.apache.commons.httpclient.util.Base64
          The commons-codec Base64 class will be used in HttpClient 2.1 
org.apache.commons.httpclient.NTLM
          this class will be made package access for 2.0beta2 
org.apache.commons.httpclient.RequestOutputStream
          Use new ChunkedOutputStream(HttpConnecion#getRequestOutputStream()); 
org.apache.commons.httpclient.ResponseInputStream
          Use new ChunkedInputStream(HttpConnecion#getResponseInputStream()); 
org.apache.commons.httpclient.methods.UrlDeleteMethod
          use DeleteMethod 
org.apache.commons.httpclient.methods.UrlGetMethod
          use GetMethod 
org.apache.commons.httpclient.methods.UrlHeadMethod
          use HeadMethod 
org.apache.commons.httpclient.methods.UrlOptionsMethod
          use OptionsMethod 
org.apache.commons.httpclient.methods.UrlPostMethod
          use PostMethod 
org.apache.commons.httpclient.methods.UrlPutMethod
          use PutMethod 
 

Deprecated Interfaces
org.apache.commons.httpclient.HttpUrlMethod
          use HttpMethod 
 

Deprecated Fields
org.apache.commons.httpclient.HttpURL._default_port
          Use HttpURL.DEFAULT_PORT instead. This one doesn't conform to the project naming conventions. 
org.apache.commons.httpclient.HttpsURL._default_port
          Use HttpsURL.DEFAULT_PORT instead. This one doesn't conform to the project naming conventions. 
org.apache.commons.httpclient.HttpURL._default_scheme
          Use HttpURL.DEFAULT_SCHEME instead. This one doesn't conform to the project naming conventions. 
org.apache.commons.httpclient.HttpsURL._default_scheme
          Use HttpsURL.DEFAULT_SCHEME instead. This one doesn't conform to the project naming conventions. 
 

Deprecated Methods
org.apache.commons.httpclient.Authenticator.authenticate(HttpMethod, HttpState)
          use HttpAuthenticator.authenticate(AuthScheme, HttpMethod, HttpConnection, HttpState) 
org.apache.commons.httpclient.Authenticator.authenticateProxy(HttpMethod, HttpState)
          use HttpAuthenticator.authenticateProxy(AuthScheme, HttpMethod, HttpConnection, HttpState) 
org.apache.commons.httpclient.ResponseInputStream.close()
          Use ChunkedInputStream; 
org.apache.commons.httpclient.RequestOutputStream.close()
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.Cookie.createCookieHeader(String, int, String, boolean, Cookie[])
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.createCookieHeader(String, int, String, boolean, Date, Cookie[])
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.createCookieHeader(String, String, boolean, Cookie[])
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.createCookieHeader(String, String, Cookie[])
          use CookieSpec interface 
org.apache.commons.httpclient.HttpClient.endSession()
          this method has no effect. HttpMethod.releaseConnection() should be used to release resources after a HttpMethod has been executed. 
org.apache.commons.httpclient.HttpState.getCookies(String, int, String, boolean, Date)
          use HttpState.getCookies(String, int, String, boolean) 
org.apache.commons.httpclient.HttpState.getCredentials(String)
          This method does not distinguish between realms on different servers with the same name. Use HttpState.getCredentials(String, String) instead. 
org.apache.commons.httpclient.methods.GetMethod.getFileData()
          the client is responsible for disk I/O 
org.apache.commons.httpclient.HttpState.getHttpConnectionManager()
          Connection manager is controlled by the HttpClient class. Use HttpClient.getHttpConnectionManager() instead. 
org.apache.commons.httpclient.HttpState.getProxyCredentials(String)
          This method does not distinguish between realms on different hosts. Use HttpState.getProxyCredentials(String, String) instead. 
org.apache.commons.httpclient.HttpConnection.getRequestOutputStream(boolean)
          Use new ChunkedOutputStream(httpConnecion.getRequestOutputStream()); 
org.apache.commons.httpclient.HttpConnection.getResponseInputStream(HttpMethod)
          Use getResponseInputStream() instead. 
org.apache.commons.httpclient.methods.GetMethod.getTempDir()
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod.getTempFile()
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod.getUseDisk()
          the client is responsible for disk I/O 
org.apache.commons.httpclient.RequestOutputStream.isUseChunking()
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.Cookie.matches(String, int, String, boolean)
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.matches(String, int, String, boolean, Date)
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.parse(String, int, String, boolean, Header)
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.parse(String, String, boolean, Header)
          use CookieSpec interface 
org.apache.commons.httpclient.Cookie.parse(String, String, Header)
          use CookieSpec interface 
org.apache.commons.httpclient.RequestOutputStream.print(String)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.RequestOutputStream.println()
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.RequestOutputStream.println(String)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.ResponseInputStream.read()
          Use ChunkedInputStream; 
org.apache.commons.httpclient.ResponseInputStream.read(byte[], int, int)
          Use ChunkedInputStream; 
org.apache.commons.httpclient.HttpState.setCredentials(String, Credentials)
          This method does not distinguish between realms with the same name on different hosts. Use HttpState.setCredentials(String, Credentials) instead. 
org.apache.commons.httpclient.methods.GetMethod.setFileData(File)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.HttpState.setHttpConnectionManager(HttpConnectionManager)
          Connection manager is controlled by the HttpClient class. Use HttpClient.setHttpConnectionManager(HttpConnectionManager) instead. 
org.apache.commons.httpclient.HttpState.setProxyCredentials(String, Credentials)
          This method does not differentiate between realms with the same name on different servers. Use HttpState.setProxyCredentials(String, String, Credentials) instead. 
org.apache.commons.httpclient.HttpConnection.setSecure(boolean)
          use setProtocol(Protocol) 
org.apache.commons.httpclient.methods.GetMethod.setTempDir(String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod.setTempFile(String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.RequestOutputStream.setUseChunking(boolean)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.methods.GetMethod.setUseDisk(boolean)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.HttpClient.startSession(String, int)
          use hostConfiguration Sets the host, port and protocol(http) to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(String, int, boolean)
          use hostConfiguration Sets the host, port and protocol to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(String, int, Credentials)
          use hostConfiguration and httpState Sets the host, port, protocol(http) and credentials to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(String, int, Credentials, boolean)
          use hostConfiguration and httpState Sets the host, port, protocol and credentials to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(String, int, String, int)
          use hostConfiguration Sets the host, port, protocol(http) and proxy to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(String, int, String, int, boolean)
          use hostConfiguration Sets the host, port, protocol and proxy to be used when executing a method. 
org.apache.commons.httpclient.HttpClient.startSession(URI)
          use hostConfiguration and httpState Sets the host, port, protocol and credentials to be used when executing a method using the server specified by the scheme, userinfo, host and port of the given uri.

Note that the path component is not utilized.

 

org.apache.commons.httpclient.HttpClient.startSession(URL)
          use hostConfiguration Sets the host, port and protocol to be used when executing a method.

Note that everything but the protocol, host and port of the given url is ignored.

 
org.apache.commons.httpclient.HttpClient.startSession(URL, Credentials)
          use hostConfiguration and httpState Sets the host, port, protocol and credentials to be used when executing a method.

Note that everything but the protocol, host and port of the given url is ignored.

 
org.apache.commons.httpclient.RequestOutputStream.write(byte[], int, int)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.RequestOutputStream.write(int)
          Use ChunkedOutputStream; 
 

Deprecated Constructors
org.apache.commons.httpclient.methods.EntityEnclosingMethod(String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.EntityEnclosingMethod(String, String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.ExpectContinueMethod(String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.ExpectContinueMethod(String, String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod(String, File)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod(String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.GetMethod(String, String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.HttpConnection(String, int, boolean)
          use HttpConnection(String, int, Protocol) 
org.apache.commons.httpclient.HttpConnection(String, int, String, int, boolean)
          use HttpConnection(String, int, String, int, Protocol) 
org.apache.commons.httpclient.methods.PostMethod(String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.methods.PostMethod(String, String, String)
          the client is responsible for disk I/O 
org.apache.commons.httpclient.RequestOutputStream(OutputStream)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.RequestOutputStream(OutputStream, boolean)
          Use ChunkedOutputStream; 
org.apache.commons.httpclient.ResponseInputStream(InputStream, boolean, int)
          Use ChunkedInputStream; 
org.apache.commons.httpclient.ResponseInputStream(InputStream, HttpMethod)
          Use ChunkedInputStream; 
org.apache.commons.httpclient.URI(URL)
          currently somewhat wrong and diffrent with java.net.URL usage 
 



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.