Deprecated API


Contents
Deprecated Interfaces
org.apache.http.params.CoreConnectionPNames
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.CoreProtocolPNames
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.io.EofSensor
          (4.3) no longer used. 
org.apache.http.protocol.ExecutionContext
          (4.3) use HttpCoreContext. 
org.apache.http.params.HttpParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.HttpParamsNames
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.protocol.HttpRequestHandlerResolver
          see HttpRequestHandlerMapper 
org.apache.http.protocol.HttpRequestInterceptorList
          (4.3) 
org.apache.http.protocol.HttpResponseInterceptorList
          (4.3) 
 

Deprecated Classes
org.apache.http.impl.AbstractHttpClientConnection
          (4.3) use DefaultBHttpClientConnection 
org.apache.http.params.AbstractHttpParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.impl.AbstractHttpServerConnection
          (4.3) use DefaultBHttpServerConnection 
org.apache.http.impl.io.AbstractSessionInputBuffer
          (4.3) use SessionInputBufferImpl 
org.apache.http.impl.io.AbstractSessionOutputBuffer
          (4.3) use SessionOutputBufferImpl 
org.apache.http.params.BasicHttpParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.protocol.BasicHttpProcessor
          (4.3) 
org.apache.http.protocol.DefaultedHttpContext
          (4.3) no longer used. 
org.apache.http.params.DefaultedHttpParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.impl.DefaultHttpClientConnection
          (4.3) use DefaultBHttpClientConnection 
org.apache.http.impl.DefaultHttpServerConnection
          (4.3) use DefaultBHttpServerConnection 
org.apache.http.impl.entity.EntityDeserializer
          (4.3) use BHttpConnectionBase 
org.apache.http.impl.entity.EntitySerializer
          (4.3) use BHttpConnectionBase 
org.apache.http.util.ExceptionUtils
          (4.2) no longer used 
org.apache.http.params.HttpAbstractParamBean
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.HttpConnectionParamBean
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.HttpConnectionParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.HttpParamConfig
          (4.3) provided for compatibility with HttpParams. Do not use. 
org.apache.http.params.HttpProtocolParamBean
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.params.HttpProtocolParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.protocol.HttpRequestHandlerRegistry
          (4.3) use UriHttpRequestHandlerMapper 
org.apache.http.impl.io.HttpRequestParser
          (4.2) use DefaultHttpRequestParser 
org.apache.http.impl.io.HttpRequestWriter
          (4.3) use DefaultHttpRequestWriter 
org.apache.http.impl.io.HttpResponseParser
          (4.2) use DefaultHttpResponseParser 
org.apache.http.impl.io.HttpResponseWriter
          (4.3) use DefaultHttpResponseWriter 
org.apache.http.impl.SocketHttpClientConnection
          (4.3) use DefaultBHttpClientConnection 
org.apache.http.impl.SocketHttpServerConnection
           
org.apache.http.impl.io.SocketInputBuffer
          (4.3) use SessionInputBufferImpl 
org.apache.http.impl.io.SocketOutputBuffer
          (4.3) use SessionOutputBufferImpl 
org.apache.http.protocol.SyncBasicHttpContext
          (4.2) HttpContext instances may not be shared by multiple threads 
org.apache.http.params.SyncBasicHttpParams
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
 

Deprecated Fields
org.apache.http.protocol.HTTP.ASCII
          (4.2) 
org.apache.http.protocol.HTTP.CHARSET_PARAM
          (4.2) 
org.apache.http.entity.ByteArrayEntity.content
          (4.2) 
org.apache.http.message.BasicHeaderValueFormatter.DEFAULT
          (4.3) use BasicHeaderValueFormatter.INSTANCE 
org.apache.http.message.BasicHeaderValueParser.DEFAULT
          (4.3) use BasicHeaderValueParser.INSTANCE 
org.apache.http.message.BasicLineFormatter.DEFAULT
          (4.3) use BasicLineFormatter.INSTANCE 
org.apache.http.message.BasicLineParser.DEFAULT
          (4.3) use BasicLineParser.INSTANCE 
org.apache.http.protocol.HTTP.DEFAULT_CONTENT_CHARSET
          (4.2) 
org.apache.http.protocol.HTTP.DEFAULT_CONTENT_TYPE
          (4.2) 
org.apache.http.protocol.HTTP.DEFAULT_PROTOCOL_CHARSET
          (4.2) 
org.apache.http.protocol.ExecutionContext.HTTP_PROXY_HOST
          (4.3) do not use. 
org.apache.http.protocol.HTTP.ISO_8859_1
          (4.2) 
org.apache.http.protocol.HTTP.OCTET_STREAM_TYPE
          (4.2) 
org.apache.http.message.AbstractHttpMessage.params
           
org.apache.http.protocol.HTTP.PLAIN_TEXT_TYPE
          (4.2) 
org.apache.http.protocol.HTTP.US_ASCII
          (4.2) 
org.apache.http.protocol.HTTP.UTF_16
          (4.2) 
org.apache.http.protocol.HTTP.UTF_8
          (4.2) 
 

Deprecated Methods
org.apache.http.HttpEntity.consumeContent()
          (4.1) Use EntityUtils.consume(HttpEntity) 
org.apache.http.entity.AbstractHttpEntity.consumeContent()
          (4.1) Either use HttpEntity.getContent() and call InputStream.close() on that; otherwise call HttpEntity.writeTo(java.io.OutputStream) which is required to free the resources. 
org.apache.http.entity.HttpEntityWrapper.consumeContent()
          (4.1) Either use HttpEntityWrapper.getContent() and call InputStream.close() on that; otherwise call HttpEntityWrapper.writeTo(OutputStream) which is required to free the resources. 
org.apache.http.impl.pool.BasicConnFactory.create(Socket, HttpParams)
          (4.3) no longer used. 
org.apache.http.util.EntityUtils.getContentCharSet(HttpEntity)
          (4.1.3) use ContentType.getOrDefault(HttpEntity) 
org.apache.http.util.EntityUtils.getContentMimeType(HttpEntity)
          (4.1.3) use ContentType.getOrDefault(HttpEntity) 
org.apache.http.protocol.UriPatternMatcher.getObjects()
          (4.1) do not use 
org.apache.http.HttpMessage.getParams()
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.message.AbstractHttpMessage.getParams()
          (4.3) use constructor parameters of configuration API provided by HttpClient 
org.apache.http.protocol.HttpService.getParams()
          (4.3) no longer used. 
org.apache.http.pool.PoolEntry.getValidUnit()
          use PoolEntry.getValidityDeadline() 
org.apache.http.io.SessionInputBuffer.isDataAvailable(int)
          (4.3) do not use. This function should be provided at the connection level 
org.apache.http.message.BasicHeaderValueParser.parseNameValuePair(CharArrayBuffer, ParserCursor, char[])
          (4.4) use TokenParser 
org.apache.http.protocol.HttpService.setConnReuseStrategy(ConnectionReuseStrategy)
          (4.1) set ConnectionReuseStrategy using constructor 
org.apache.http.protocol.HttpService.setExpectationVerifier(HttpExpectationVerifier)
          (4.1) set HttpExpectationVerifier using constructor 
org.apache.http.protocol.HttpService.setHandlerResolver(HttpRequestHandlerResolver)
          (4.1) set HttpRequestHandlerResolver using constructor 
org.apache.http.protocol.UriPatternMatcher.setHandlers(Map)
          (4.1) do not use 
org.apache.http.protocol.HttpService.setHttpProcessor(HttpProcessor)
          (4.1) set HttpProcessor using constructor 
org.apache.http.protocol.UriPatternMatcher.setObjects(Map)
          (4.1) do not use 
org.apache.http.HttpMessage.setParams(HttpParams)
          (4.3) use configuration classes provided 'org.apache.http.config' and 'org.apache.http.client.config' 
org.apache.http.message.AbstractHttpMessage.setParams(HttpParams)
          (4.3) use constructor parameters of configuration API provided by HttpClient 
org.apache.http.protocol.HttpService.setParams(HttpParams)
          (4.1) set HttpResponseFactory using constructor 
org.apache.http.protocol.HttpService.setResponseFactory(HttpResponseFactory)
          (4.1) set HttpResponseFactory using constructor 
org.apache.http.ssl.SSLContextBuilder.useProtocol(String)
          Use SSLContextBuilder.setProtocol(String). 
 

Deprecated Constructors
org.apache.http.message.AbstractHttpMessage(HttpParams)
          (4.3) use AbstractHttpMessage.AbstractHttpMessage() 
org.apache.http.impl.io.AbstractMessageParser(SessionInputBuffer, LineParser, HttpParams)
          (4.3) use AbstractMessageParser.AbstractMessageParser(SessionInputBuffer, LineParser, MessageConstraints) 
org.apache.http.impl.io.AbstractMessageWriter(SessionOutputBuffer, LineFormatter, HttpParams)
          (4.3) use AbstractMessageWriter.AbstractMessageWriter(SessionOutputBuffer, LineFormatter) 
org.apache.http.impl.pool.BasicConnFactory(HttpParams)
          (4.3) use BasicConnFactory.BasicConnFactory(int, SocketConfig, ConnectionConfig). 
org.apache.http.impl.pool.BasicConnFactory(SSLSocketFactory, HttpParams)
          (4.3) use BasicConnFactory.BasicConnFactory(SocketFactory, SSLSocketFactory, int, SocketConfig, ConnectionConfig). 
org.apache.http.impl.pool.BasicConnPool(HttpParams)
          (4.3) use BasicConnPool.BasicConnPool(SocketConfig, ConnectionConfig) 
org.apache.http.impl.io.ChunkedOutputStream(SessionOutputBuffer)
          (4.3) use ChunkedOutputStream.ChunkedOutputStream(int, SessionOutputBuffer) 
org.apache.http.impl.io.ChunkedOutputStream(SessionOutputBuffer, int)
          (4.3) use ChunkedOutputStream.ChunkedOutputStream(int, SessionOutputBuffer) 
org.apache.http.impl.io.DefaultHttpRequestParser(SessionInputBuffer, LineParser, HttpRequestFactory, HttpParams)
          (4.3) use DefaultHttpRequestParser.DefaultHttpRequestParser(SessionInputBuffer, LineParser, HttpRequestFactory, MessageConstraints) 
org.apache.http.impl.io.DefaultHttpResponseParser(SessionInputBuffer, LineParser, HttpResponseFactory, HttpParams)
          (4.3) use DefaultHttpResponseParser.DefaultHttpResponseParser(SessionInputBuffer, LineParser, HttpResponseFactory, MessageConstraints) 
org.apache.http.entity.FileEntity(File, String)
          (4.1.3) FileEntity.FileEntity(File, ContentType) 
org.apache.http.protocol.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory)
          (4.1) use HttpService.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerResolver, HttpParams) 
org.apache.http.protocol.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerResolver, HttpExpectationVerifier, HttpParams)
          (4.3) use HttpService.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerMapper, HttpExpectationVerifier) 
org.apache.http.protocol.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerResolver, HttpParams)
          (4.3) use HttpService.HttpService(HttpProcessor, ConnectionReuseStrategy, HttpResponseFactory, HttpRequestHandlerMapper) 
org.apache.http.protocol.ImmutableHttpProcessor(HttpRequestInterceptorList, HttpResponseInterceptorList)
          (4.3) do not use. 
org.apache.http.protocol.RequestExpectContinue()
          (4.3) use RequestExpectContinue.RequestExpectContinue(boolean) 
org.apache.http.entity.StringEntity(String, String, String)
          (4.1.3) use StringEntity.StringEntity(String, ContentType) 
 



Copyright © 2005–2018 The Apache Software Foundation. All rights reserved.